Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: Top five words by occurrence

by Dietz (Curate)
on Jul 19, 2005 at 10:29 UTC ( #476024=note: print w/replies, xml ) Need Help??

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?

Replies are listed 'Best First'.
Re^3: Top five words by occurrence
by ikegami (Pope) on Jul 19, 2005 at 14:05 UTC
    aye, you're right.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://476024]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-11-21 14:32 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (302 votes). Check out past polls.