Help for this page

Select Code to Download


  1. or download this
    # match a line that only contains one new line
    if ($line =~ /^\n$/) {
    
  2. or download this
    # match a line that only contains one or more whitespace
    if ($line =~ /^\s+$/) {
    
  3. or download this
    foreach (@blah) {
       if ($foo) {
    ...
          # other stuff
       }
    }
    
  4. or download this
    # open filehandles ...
    
    ...
    
        print OUTPUT $line if $s and $line !~ /^\s+$/;
    }