* John Douglas Porter <[EMAIL PROTECTED]> [2003-02-07 14:15]: > @lines = split /\n/, $x, -1; pop @lines;
$/ can be different from \n though. And popping the last field is dangerous - you don't know if the file ends with a newline. Also, you now have no chance to reconstruct the exact equivalent of your input using $line = join $/, @lines; because that will never attach a record separator to the last line even if there was one before. -- Regards, Aristotle