in reply to Copying text between markers
if($line =~ /<!--TABLE -->/ .. $line =~ /<!--\/TABLE -->/){ add_the_line_to_result($line)); } [download]