Since you are counting unique words don't use an array, arrays don't care about uniqueness. Use a hash which has unique keys.
Use split to get the words.
If you still have problems post what you have been trying.
Also please use the Perlmonks '<code>' tags to wrap your code in.
In reply to Re: Just starting out with Perl
by grep
in thread Just starting out with Perl
by iridius
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |