> print "g++ $ARGV[i] \n";
> Argument "i" isn't numeric in array element at
> ./cedit01 line 61.
It is exactly what it says - the string 'i' is not numeric and you are using
it as an @ARGV index. Perhaps you meant $ARGV[$i]. Furthermore the whole
c-loop construct is not very appropriate as perl has its own built-in array
iterator:
foreach my $argument (@ARGV) {
print "g++ $argument \n";
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>