I, for the life of me, could not grasp the "length $_" concept (what it was testing for each entry), so we re-wrote it in a way that worked better for our comprehension.
use strict;
use warnings;
my @prime = (2); my $not_prime;
for my $i(3..100){
$not_prime=0;
for(@prime){
next if int($i/$_)!=($i/$_);
$not_prime=1;
}
push @prime, $i if $not_prime!=1;
}
print join "\n", @prime;
Thanks again for your help! (The next, last, and conditional-if's that you inadvertantly taught me are VERY welcomed pieces of information.)