Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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'

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 about the Monastery: (8)
As of 2016-09-30 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (563 votes). Check out past polls.