my @block; while ( <$fh> ) { if ( /^\#/ ) { if ( $block[3] =~ /^ord\s*$/ ) { print $block[0]; } $#block = -1; } push @block, $_; }
One world, one people
In reply to Re: print matching lines
by anonymized user 468275
in thread print matching lines
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |