my @urls = map { $_->url_abs } @links; #### $mech->get($foo, ':content_file'=>$filename); my $file_content = $mech->get($foo);