Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
      }
    }
    close OUT;
    
  2. or download this
        # split BEFORE a ( or AFTER a )
        my @s = split /(?=\()|(?<=\))/;
    ...
    ### that even lets you get away with leaving out @s
    
        push @results, [ split /(?=\()|(?<=\))/ ];
    
  3. or download this
      # display the line if we've never seen the fields
      print OUT @$line if not $seen{$line->[1]}++;