in reply to Between START .. END
while (<DATA>) { next unless my $count = ?start?../end/; next if $count == 1; print; } [download]
#!/usr/bin/perl -w use strict; while (<DATA>) { $_ =~ tr/!@#$%^&*//d; # will you encounter funky chars? next unless ($_ =~/(^\d+)/); print $_; } __DATA__ START 1 2 3! 4 5 END START 1* 2 3 4 5 6 END [download]