Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: STDIN following on?by CheeseLord (Deacon) |
on Aug 10, 2001 at 22:54 UTC ( [id://103998]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|