Help for this page

Select Code to Download


  1. or download this
    my @list = (rand(1), rand(1), rand(1));
    my $less=1;
    for (@list) { $less=0, last if $_>=0.5; }
    
  2. or download this
    for (@list) { last if $_ < 0.5; }
    my $less = $loop_ran_to_completion;
    
  3. 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";
    }