Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Moose and File::Temp

by ColonelPanic (Friar)
on Nov 19, 2012 at 12:41 UTC ( #1004525=note: print w/replies, xml ) Need Help??

in reply to Moose and File::Temp

When a filehandle reference is contained in something more complex than a simple scalar variable, it has to be surrounded by braces:
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.

When's the last time you used duct tape on a duct? --Larry Wall

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004525]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2016-10-25 03:49 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (313 votes). Check out past polls.