while ($input->getline()) { print if m/^\w+-owner:/; # print $_, "\n" if m/^\w+-owner:/; }
I don't see why your code would loop, maybe there is something wrong with $input->getline()?
hope this helps,
In reply to Re: I think this is a simple one...
by CukiMnstr
in thread Alternate ways to loop over input (was: I think this is a simple one...)
by mjn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |