> while (<$ARGV>) {
>         print "count $count $ARGV[$count]\n";
>         $count++;
> }
 
What is $ARGV[$count]?  Is it supposed to be
the line of the file?

Either use:

my @file = <ARGV>;

foreach my $line (@file) {
    print 'count' . $count++ . $_ . "\n";
}

Or:

while (<ARGV>) {
    print "count $. $_";
}

Note that ARGV can just be written as <>.

I *think* that is what you are looking for.

Jonathan Paton

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to