Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: checking bareword-filehandle

by moritz (Cardinal)
on Aug 06, 2012 at 13:30 UTC ( #985708=note: print w/ replies, xml ) Need Help??


in reply to Re^2: checking bareword-filehandle
in thread checking bareword-filehandle

After skimming perlmod and perlref I've dug up

print FH $foo if *{$foo}{IO};

which is somewhat ugly, but seems to work.


Comment on Re^3: checking bareword-filehandle
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2015-09-01 23:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (53 votes), past polls