If I understood your original question correctly, you wanted a file handle which wrote to a variable instead of to a file.
$fh is the file handle.
$var is the variable in which the text ends up.
'moo!' is the text being written to $var.
In reply to Re^3: write from filehandle to variable
by ikegami
in thread write from filehandle to variable
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |