use 5.008000; # open \$var open(my $fh, '<', \$var); while (<$fh>) { ... }
or
while ($var =~ /(.*\n|.+)/g) { ... }
In reply to Re: Reading a variable as a file
by ikegami
in thread Reading a variable as a file
by Wiggins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |