Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 studying the Monastery: (7)
As of 2014-09-18 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (124 votes), past polls