in reply to Perl Destroys Interview Question
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Perl Destroys Interview Question
by redsquirrel (Hermit) on Jan 13, 2004 at 15:09 UTC |