in reply to
Re: Top five words by occurrence
in thread
Top five words by occurrence
last if $top--;
In your first example this would evaluate to 'last if true', thus exiting the loop before the first print statement would get called.
Shouldn't that be
last unless $top--;
or am I overlooking something?
Comment on
Re^2: Top five words by occurrence
Download
Code
Replies are listed 'Best First'.
Re^3: Top five words by occurrence
by
ikegami
(Patriarch)
on Jul 19, 2005 at 14:05 UTC
aye, you're right.
[reply]
In Section
Seekers of Perl Wisdom