in reply to Re: Reading a variable as a file
in thread Reading a variable as a file

Cool. I didn't know it also works with refs. An alternative is IO::Scalar.
use IO::Scalar; ### Open a handle on a string, read it line-by-line, then close it: $SH = new IO::Scalar \$var; while (<$SH>) { # ... } close $SH;

print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});