in reply to Perl Destroys Interview Question

This doesn't count words in a file. It almost counts unique lines in a file. What it actually does is list each unique line in a file and the number of times it occurs. This is useful in some situations, and I'm sure it's quicker to do in Perl than in Java. It's hardly a case-insensitive word count.

Is this exactly the code you submitted to solve their problem, or did you retype this from memory?



Christopher E. Stith

Replies are listed 'Best First'.
Re: Re: Perl Destroys Interview Question
by redsquirrel (Hermit) on Jan 13, 2004 at 15:02 UTC
    I copy/pasted this code. I didn't re-type it. Why do you ask?