in reply to Split and empty strings
Can you post some code. I don't think I understand what you're saying. I tried the following:
#!/usr/bin/perl -w use strict; $_ = 'This is a string with newlines and blank lines'; my @arr = split /\n/; print map { "|$_|\n" } @arr;
a nd it gave this output:
|This is| |a string| || |with| |newlines| || |and| || |blank lines|
which looks right to me. What were you hoping for?
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
|
|---|