in reply to Spotting an empty array as argument
Since one can change the output handle with select , it should also be possible to change the print method of the IO object.
In a perfect world are print and say only calling that method.
But who knows what kind of magic rules here and I'm too tired to check this out now. :)
See also tied file handles:
A class implementing a filehandle should have the following methods: TIEHANDLE classname, LIST READ this, scalar, length, offset READLINE this GETC this WRITE this, scalar, length, offset PRINT this, LIST <---- PRINTF this, format, LIST BINMODE this EOF this FILENO this SEEK this, position, whence TELL this OPEN this, mode, LIST CLOSE this DESTROY this UNTIE this
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Spotting an empty array as argument
by haukex (Archbishop) on Mar 26, 2021 at 22:16 UTC | |
by LanX (Saint) on Mar 27, 2021 at 00:28 UTC | |
by haukex (Archbishop) on Mar 27, 2021 at 08:55 UTC |