From: "Laycock, Angus" <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Subject: @ARGV question Date sent: Mon, 18 Mar 2002 10:56:39 -0000
> Hi There. > > I have this piece of code which I call with the following; array.csh > "one" "two" "three four" "five" "sic cod" > > #!/opt/perl-5.6.1/bin/perl -w > $count=0; > print " ARGV $#ARGV\n\n"; > > while (<$ARGV>) { Beg your pardon? What do you think this means? I think you meant while ( $count <= $#ARGV) { If you look into perldoc perlvar you'll see that $ARGV = contains the name of the current file when reading from <>. I don't see you reading from <>. And even if you did <$ARGV> would warn about something like : readline() on unopened filehandle Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain. I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]