- or download this
$num_domains = scalar @domains;
...
$num_domains = scalar @domains; # get the size of array
}
- or download this
for ( 0 .. $#@domains ) {
# do stuff
...
# blah
push @domains, @new_domains;
}
- or download this
my $root = 'd:/perl/';
my ( @dirs, @fails, @files);
...
}
}
print "$_\n" for @dirs;