Help for this page

Select Code to Download


  1. or download this
    our $rcListHash = sub
        {
    ...
    
        print OUTPUT @uniq; # Instead of return @uniq;
        };
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    }
    
    __END__
    
  3. or download this
    perl -ne 'print if !$saw{$_}++'
    
  4. or download this
    perl -pe'$_ x=!$$_++'
    
  5. or download this
    sub uniq {
        my %saw;
        grep !$saw{$_}++, @_;
    }
    
  6. or download this
    sub uniq {
        my ($out, %saw)=shift;
        print $out grep !$saw{$_}++, @_;
    }
    
  7. or download this
    {
        my %saw;
        sub { grep !$saw{$_}++, @_ }
    }
    
  8. or download this
    #!/usr/bin/perl -l
    
    ...
    print for $u2->check(qw/foo barr baz/);
    
    __END__