- or download this
print "Foo...\n" if $verbose;
- or download this
my @array = ( "foo", "bar", "baz" );
my $i;
...
for( $i = 0; $i < $array_size; $i++ ) {
...do something with $array[$i]...including assigning to it
}
- or download this
my @array = ( "foo", "bar", "baz" );
foreach my $value ( @array ) {
...do something with $value...including assigning to it
}
- or download this
#!/usr/bin/perl -w
...your script here...
- or download this
use strict;