in reply to prototypes for dual-file handle print?
There's no way to define a sub to have the same syntax as print, much less a version with an extra handle.
It is possible to create a handle that writes to two other handles, though. See IO::Tee
how is the "die" function prototyped?
Use prototype to determine that.
$ perl -wle'print prototype("CORE::die")' @
But also see $SIG{__DIE__} in perlvar.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: prototypes for dual-file handle print?
by Anonymous Monk on Jul 06, 2010 at 08:14 UTC | |
by ikegami (Patriarch) on Jul 06, 2010 at 16:23 UTC | |
by Fletch (Bishop) on Jul 06, 2010 at 15:07 UTC |