- or download this
use strict; #always and forever, amen.
use warnings; #or else.
...
#@ARGV is an array containing the arguments supplied. We're taking the
+ first value.
print "\n$argument";
#This here will show you exactly what has been put into $argument.
- or download this
$bar='Hello,';
...
#will first print out the contents of $bar, then $baz because
#those are the arguments given.
}
- or download this
foo("square", 3);
sub foo{
my ($shape, $size) = @_;
}