Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^4: tieing STDIN & STDOUT using IO::Scalar for use inside an evalby edan (Curate) |
on Sep 12, 2004 at 11:51 UTC ( [id://390401]=note: print w/replies, xml ) | Need Help?? |
As long as we're getting specific, we might as well get it exactly right: The contents of @ARGV are always "treated as file names, and the files are magically opened and read from." If @ARGV is empty, then "$ARGV[0] is set to "-", which when opened gives you standard input." - perlop So it really never reads from the filehandle named STDIN, but it might read standard input by opening the file named "-".
In Section
Seekers of Perl Wisdom
|
|