in reply to Problem with simple program reading from STDIN
It might also be worth noting that there is no condition after an else; the purpose of that one is, after all, to catch everything that hasn't been handled yet, so to speak.
Also, are you sure that $temp eq "<STDIN>" (notice the quotes) is what you want, anyhow? It looks rather suspicious to me.
--
mowgli
|
|---|