in reply to Search for Second Occurence of Substing and get containing text
if(Dumper($page) =~ /===Comments===(.*?)=Microarray Data=/s.*?===Comme +nts===(.*)) { $lit_comments = $1; $second_comments = $2; } [download]
See perlretut for some reference material.