in reply to Re: extracting lines from a string - while ignoring the \n character
in thread extracting lines from a string - while ignoring the \n character
$ cat test.txt bla. fasel . foo . bar. $ perl -e ' use IO::String; $str=`cat test.txt`; $fh = IO::String->new($str); $/="."; print "$_|" for <$fh>' bla.| fasel .| foo .| bar.| |
print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: extracting lines from a string - while ignoring the \n character
by erroneousBollock (Curate) on Oct 30, 2007 at 02:04 UTC |