in reply to Skip 21 Lines

$. holds the input line number, so you could check against that...

or you could keep a count... next unless $i++ > 21;
                - Ant