Help for this page

Select Code to Download


  1. or download this
    sub loop_control { 
        if ($x > $stop) { 
    ...
    last if $return_status eq "last";
    next if $return_status eq "next";
    # ...
    
  2. or download this
    say "exiting the loop" and last if $return_status eq "last";
    say "going to next element" and next if $return_status eq "next";
    # ...