- or download this
my @list = (rand(1), rand(1), rand(1));
my $less=1;
for (@list) { $less=0, last if $_>=0.5; }
- or download this
for (@list) { last if $_ < 0.5; }
my $less = $loop_ran_to_completion;
- or download this
use Data::Dump;
@list = (rand(1), rand(1), rand(1));
dd \@list;
...
# if any element is big we come here
print "Some Big\n";
}