While you were at it you should have used strict, or else a one liner would have served the purpose just the same.
perl -lane '$w{lc $_}++ for @F;END{print for sort keys %w}' text.txt
In reply to Re: Perl Destroys Interview Question
by Anonymous Monk
in thread Perl Destroys Interview Question
by redsquirrel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |