http://qs321.pair.com?node_id=491823


in reply to Between START .. END

# if START and END occur only once, we could lock it with m??
while (<DATA>) { next unless my $count = ?start?../end/; next if $count == 1; print; }