Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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

Comment on Re: Moose and File::Temp
Download Code

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 2015-11-28 04:59 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls