print {$self->{tempfile}} "I am here";
Otherwise, the interpreter doesn't realize that is a filehandle.
Some, though not all, monks consider it a good practice to always use braces for filehandle references.
In reply to Re: Moose and File::Temp
by ColonelPanic
in thread Moose and File::Temp
by gsiglet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |