Bryan Harris wrote:
>
> >> Is there a way to discover the filename of the current file being read when
> >> using the angle brackets (e.g. while (<>) {} )?
> >
> > Well, as you may know, the <> operator reads from the file names stored
> > in the @ARGV array. The current file name is stored in the $ARGV
> > variable and the current file handle is ARGV. Also, if the $^I variable
> > is defined the current output file handle is ARGVOUT.
>
> Thanks, John and Sudarshan. I have to use <> because I need it to be able
> to read from a pipe (I'm still unclear on how to do that without the <>).
Search for the word "pipe" in the following documents:
perldoc perlopentut
perldoc perlipc
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]