for my $w ( @ARGV) { next if( $w !~ /^\d+$/); # skip non-numerics if( ($w % 2) == 0 ) { print "$w\n" } }
In reply to Re: Adding command line arguments.
by stajich
in thread Adding command line arguments.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |