Hello SAWMaster,
Wednesday, July 04, 2001, SAWMaster <[EMAIL PROTECTED]> wrote:
S> Paul, yeah the print is there just to help me debug. Isn't <> the
S> same as <STDIN>? Are you saying I should change that?
<> is not the same as STDIN. see preldoc perlop, I/O Operators.
The null filehandle <> is special and can be used to
emulate the behavior of sed and awk. Input from <> comes
either from standard input, or from each file listed on
the command line. Here's how it works: the first time <>
is evaluated, the @ARGV array is checked, and if it is
empty, $ARGV[0] is set to "-", which when opened gives you
standard input. The @ARGV array is then processed as a
list of filenames.
....
Best wishes,
Maxim mailto:[EMAIL PROTECTED]