Update: #!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; use Data::Dumper; my $url = q{http://perlmonks.org/}; my $m = WWW::Mechanize->new(); $m->get($url); print Dumper $_ for @{ $m->images }; #### Output: $VAR1 = bless( { 'width' => '468', 'base' => bless( do{\(my $o = 'http://perlmonks.org/')}, 'URI::http' ), 'alt' => 'Beefy Boxes and Bandwidth Generously Provided by pair Networks', 'name' => undef, 'url' => 'http://promote.pair.com/i/pair-banner-current.gif', 'tag' => 'img', 'height' => '60' }, 'WWW::Mechanize::Image' ); $VAR1 = bless( { 'width' => '74', 'base' => bless( do{\(my $o = 'http://perlmonks.org/')}, 'URI::http' ), 'alt' => 'Ovid', 'name' => undef, 'url' => 'http://perlmonks.org/images/usermonkpics/ovidmonk.gif', 'tag' => 'img', 'height' => '91' }, 'WWW::Mechanize::Image' );