while (<>) { next if (1..5); # Whatever here }