You probably want to use "\015\012" for CR/LF since the values of \r and \n vary from system to system (\f is a form feed).
my @lines = split /\015\012/, $x;
In reply to Re: question about "split" function
by kyle
in thread question about "split" function
by rimvydazas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |