But, as I'm curious, can anyone explain why the magic <> doesn't work here?Because <> is a synonym for <ARGV>, and ARGV is a magic filehandle that sometimes reads from STDIN, but sometimes reads from files etc.
|Replies are listed 'Best First'.|
Re^3: tieing STDIN & STDOUT using IO::Scalar for use inside an eval
by etcshadow (Priest) on Sep 11, 2004 at 22:24 UTC
by edan (Curate) on Sep 12, 2004 at 11:51 UTC