RE: calling an invocation argument from @ARGV

2005-02-25 Thread Larsen, Errin M HMMA/IT
Hi! And, welcome to Perl! I'm trying to automate g++ through a Perl script. Here is what I have written so far: #!/bin/perl -w use strict; ## you should: use warnings; ## it will help you in the future my $counter; $counter = 0; ## With Perl, it's not really

RE: calling an invocation argument from @ARGV

2005-02-25 Thread Larsen, Errin M HMMA/IT
SNIP #!/bin/perl -w use strict; ## you should: use warnings; ## it will help you in the future SNIP Oops! I just realized your using that '-w' switch to perl up there. That IS using the warnings pragma, I believe. Sorry about that! --Errin -- To unsubscribe, e-mail:

Re: calling an invocation argument from @ARGV

2005-02-25 Thread John W. Krahn
Christopher Spears wrote: I'm trying to automate g++ through a Perl script. Here is what I have written so far: #!/bin/perl -w use strict; my $counter; $counter = 0; for (my $i = 0; $i @ARGV; $i++) { $counter++; } You don't need a loop for that as an array in scalar context returns the