in reply to Alternate ways to loop over input (was: I think this is a simple one...)

you could do something like:
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,