in reply to program hangs on user input

Works fine for me.  Maybe you've accidentally changed the input record sepaprator $/ ?

Replies are listed 'Best First'.
Re^2: program hangs on user input
by equick (Acolyte) on Jan 28, 2011 at 10:29 UTC
    Thanks! That's exactly what I did.