You might try changing the :raw to :crlf. Try also setting $/ to \n.
open my $fh, "<:crlf:scalar", $record{'data'} or die ...; { local $/ = "\n"; while ( my $line = <$fh> ) { print "in line\n"; } }
In reply to Re^3: using a variable as a filehandle
by diotalevi
in thread using a variable as a filehandle
by bear0053
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |