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