filenameWhen you use $fh in a string context, you get the filename instead. This was probably intended as a convenience...Return the name of the temporary file associated with this object (if the object was created using the "new" constructor).
This method is called automatically when the object is used as a string.$filename = $tmp->filename;
You could try passing the filehandle as a reference, or putting it into a hash or array for which a reference is passed.
In reply to Re: to write string to a temp file
by keszler
in thread to write string to a temp file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |