in reply to Perl Destroys Interview Question
Of course, your Perl solution (which is incorrect as it counts lines, not words) take more than 5 times the lines a shell
solution would take:
cat words.dat | tr 'A-Z ' 'a-z\012' | sort | uniq -c
I'd like to point out that for some problems, other solutions are more suited than Perl.
Abigail
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Perl Destroys Interview Question
by redsquirrel (Hermit) on Jan 13, 2004 at 15:17 UTC | |
Re: Re: Perl Destroys Interview Question
by Rhose (Priest) on Jan 13, 2004 at 16:48 UTC | |
by redsquirrel (Hermit) on Jan 13, 2004 at 20:00 UTC | |
by mr_mischief (Monsignor) on Jan 13, 2004 at 22:51 UTC | |
by ihb (Deacon) on Apr 11, 2004 at 23:33 UTC | |
by mr_mischief (Monsignor) on May 03, 2004 at 18:01 UTC | |
by Abigail-II (Bishop) on Jan 13, 2004 at 16:59 UTC |
In Section
Meditations