in reply to Parsing Files for the Interesting Bit
while(<FILE>){ if ( /^-- start foo/ .. /^-- end foo/ ){ # do what you like to do here } } [download]