Perl Mail User wrote:
> Hello All,

Hi. Providing a real name would be considered polite. Also, please choose a
meaningful subject.

> 
> I have a question, I am looking to read the name of the file that I am
> passing as an argument to the perl script through the while (<>) part
> of 
> the script.

The file name is in $ARGV. see "perldoc perlvar".

If you need to detect when <> switches from one file to another, see the
examples under "perldoc -f eof"

HTH

-- 
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