print unless ( /START context/ or /\* End context \*/ ); #### { local $/ = "* End Context *\n"; while ( ) { s/^START context//; my @info = split /\n/; chomp @info; print "$_\n" foreach @info }