in reply to Re^4: IO::Handle UNIVERSAL::can STDOUT print
in thread IO::Handle UNIVERSAL::can STDOUT print
IO::Handle::can is called with *STDOUT as the first argument just like IO::Handle::print is called with *STDOUT as the first argument. Seeing as *STDOUT isn't an object, can returns false as documented.
It wouldn't hurt for IO::Handle to override can to handle this better, though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: IO::Handle UNIVERSAL::can STDOUT print (suggested change)
by ikegami (Patriarch) on Sep 04, 2009 at 07:03 UTC |