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
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:
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