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
In reply to Re: Code question?
by mowgli
in thread Problem with simple program reading from STDIN
by yellowbeard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |