in reply to Re^2: Infinite LOOP and reading from STDINin thread Infinite LOOP and reading from STDIN
The FAQ suggests Switch::Plain so maybe try that?