while ($t =~ /
(.*?)<\/div>/sg) { print "$_\n" for $1 =~ /

(.+?)<\/p>/g; }