#!/usr/bin/perl -w %common = map { lc $_, 1 } qw/ a and the /; @words = qw/ hello there Hello hello the a A /; @words = keys %{+{ map { !$common{lc $_} ? (lc $_, 1) : () } @words }} +; $/ = "\n"; print @words;
In reply to RE: List processing performance
by visnu
in thread List processing performance
by Odud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |