use strict; use warnings; my $str; open my $fOut, '>', \$str; print $fOut "Hello World\n"; close $fOut; open my $fIn, '<', \$str; my $inStr = <$fIn>; close $fIn; print $inStr;
Prints:
Hello World
In reply to Re: Write to and read from scalar
by GrandFather
in thread Write to and read from scalar
by robxbl69
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |