After going through your <STDIN> handle once, you are now at the EOL position, meaning no more data can be read from your handle.
You would be better off reading <STDIN> contents into an ARRAY and then looping through that ARRAY in your foreach.
In reply to Re: Searching Line by Line Multiple Times
by snopal
in thread Searching Line by Line Multiple Times
by Dr.Avocado
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |