On Thu, May 21, 2009 at 12:44, Tony Esposito <tony1234567...@yahoo.co.uk> wrote: > Hello, > > Given the command line: > > perl myperl.plx < myfile.txt > > is there anyway from within the Perl script to capture the redirected STDIN > filename (i.e., myfile.txt)? > > OS: WinXP SPSP3 > Perl: 5.8.8 for Win32 from ActiveState snip
No, because the shell is piping the data to the program. Even if you could try you would run into problems with something like this perl -pe 'print' <(cat *.pl) -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/