in reply to Re^2: tieing STDIN & STDOUT using IO::Scalar for use inside an eval
in thread tieing STDIN & STDOUT using IO::Scalar for use inside an eval
If the intent is to read from STDIN, then do so, explicitly, by <STDIN>. If the intent is to process files, generically, either named files or files piped through, then use <>. In the case of the original post, which seems to be (maybe) testing some external code and trying to sandbox it, somewhat, it might just be a good idea to localize @ARGV (that is, to extend the sandbox beyond just STDIN and STDOUT (why isn't he also tieing STDERR, then, though?) to include the command line).
------------ :Wq Not an editor command: Wq
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: tieing STDIN & STDOUT using IO::Scalar for use inside an eval
by edan (Curate) on Sep 12, 2004 at 11:51 UTC |