split /\n/ works fine for me, there must be more to your problem than you are identifying?
#! perl -slw use strict; my $text = <<EOT; this is line 1 this is line 2 this is line 3 this is line 4 this is line 5 EOT my @lines = split /\n/, $text; print for @lines;
In reply to Re: dumb split question
by BrowserUk
in thread dumb split question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |