in reply to How to store each line into different variable??
If anything other than that, then you're probably better off w/an array:my ($line1, $line2) = split /[\r\n]+/, $message;
my @lines = split /[\r\n]+/, $message; print "Line1: " . $lines[0];
|
|---|