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

Re^6: Best way to check if something is a file handle?

by tobyink (Abbot)
on Jul 09, 2012 at 16:25 UTC ( #980717=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Best way to check if something is a file handle?
in thread Best way to check if something is a file handle?

It also fails for IO::All, but yes, format_name seems to be a good choice of an innocuous method for evaling.

I don't think there's any silver bullet. :-(

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'


Comment on Re^6: Best way to check if something is a file handle?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2014-08-21 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (143 votes), past polls