Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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.

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 perusing the Monastery: (5)
As of 2016-06-27 01:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (334 votes). Check out past polls.