in reply to RE: RE: A splitting question
in thread A splitting question
If you want it in an oneliner, you could just say: (The use of map releaves perl of doing an itteration.)
while(<>) {map { print "$_\n"} split; print "newline\n"}
If you combine this with little's post, you would get something like
Warning: Do not try to do something with $_ after the map, that doesn't work...undef $/; $_=<>; s/\n/ newline /g; map{ print "$_\n"} split;
I was dreaming of guitarnotes that would irritate an executive kind of guy (FZ)
|
|---|