Ramprasad A Padmanabhan wrote:
Hi all,

Hello,

  I have a script that reads all input from the files specified in
commandline

like this while(<>){
...


}

Inside the loop can I get the filename of the file from which <> is
being read

Yes, it is in the variable $ARGV


John -- use Perl; program fulfillment

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to