ikegami's post gives you the best solution you're going to get.
open my $STR, "<", \$scalar;
is the way to go
In reply to Re^2: Reading a variable as a file
by FunkyMonk
in thread Reading a variable as a file
by Wiggins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |