my $x = 0; # Would be at the top before the loop my @stripped_html; $stripped_html[$x++] = $webcrawler->content( format => "text" ); # Loop back get more URLS and keep processing. map { print $_,$/; } @stripped_html