terça-feira, 31 de maio de 2011

Perl: Split s String into lines

How to split a string into lines while preserving the trailing "\n":
my @a = split(/^/, $text);

Nenhum comentário:

Postar um comentário

Drunk Penguins

Drunk Penguins
Drunk Penguins