Help for this page

Select Code to Download


  1. or download this
    while (@array) {
         my $val = shift @array;
         # do something with $val
    }
    
  2. or download this
    while (my $val = shift @array) {
         # ...
    }
    
  3. or download this
    if (length $string) {
         # ...
    }
    
  4. or download this
    open my $fh, "<", $file or die "failed to open $file $!";
    
  5. or download this
    $error_count++ and next if some_condition();
    
  6. or download this
    ++$error_count and next if some_condition();