As I understand it, your first input call (w/ <>) is slurping up ALL your data, so that the next read (using <STDIN>) is reading nothing - that's because the first diamond is in list context, so everything gets read until EOF.
Once again, that's just my opinion. I could easily be misunderstanding your problem, but I hope that helps somewhat.
Somewhat unrelated note/Update: It's been said a few times around here that <> isn't a good idea for reading from STDIN unless you're sure you just want the unadorned diamond (which will read in from the files listed in @ARGV and not STDIN). If that's not the case for you (I can't tell from your code), then I'd suggest switching the call, for both clarity and safety.
His Royal Cheeziness
In reply to Re: STDIN following on?
by CheeseLord
in thread STDIN following on?
by tfrayner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |