You're opening a reference to a scalar to read from.open my $fh, "<", \$string or die "can't read from \$string: $!"; while (<$fh>) { ... }
In reply to Re: Converting a String to a FileHandle
by japhy
in thread Converting a String to a FileHandle
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |