in reply to Printing last element of hash (unintentionally)

That exit could be the culprit, if you want the loop to execute more than once. :)

Replies are listed 'Best First'.
Re: Re: Printing last element of hash (unintentionally)
by Anonymous Monk on Jan 03, 2004 at 21:02 UTC
    That could have been a reason, but in my copy I commented it out and it still does the same thing. Only the last key gets printed.