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. :-(
In reply to Re^6: Best way to check if something is a file handle?
by tobyink
in thread Best way to check if something is a file handle?
by tobyink
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |