If $txt is a big string with embedded newlines, then why are you using it to open a filehandle?
Wouldn't
do what you need?foreach my $line ( split("\n", $txt) ) { # do something to filter $line }
In reply to Re: strings again
by dws
in thread string truncation problem
by techm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |