And look for the <> operator in the manual.while(<$input>){ print "$_\n" if /^\w+-owner:/; }
Update: Shame on me to leave that line with next in the first version. Now it is a lot more conscise.
In reply to Re: I think this is a simple one...
by zby
in thread Alternate ways to loop over input (was: I think this is a simple one...)
by mjn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |