Help for this page

Select Code to Download


  1. or download this
    {
      open my $fh, "<", "some_file" or last;
    }
    
  2. or download this
    if (/VALID/)
    {{ # First bracket is for the if, second is for a loop-like block
      open my $fh, "<", "some_file" or last;
    }}
    
  3. or download this
    while (<>)
    {
      if (/INVALID/)
    ...
        last;
      }
    }