MC logo

Args I

  Code Examples

<<Postfix Control Constructs args1.pl Args II: The For Loop>>
use strict;

# This script simply prints its command line arguments, one per line.

my $sub = 0;
while($sub <= $#ARGV) {
    print "$ARGV[$sub]\n";
    ++$sub;
}
print "[@ARGV]\n";
<<Postfix Control Constructs Args II: The For Loop>>