Re: WWW::Mechanize -- bug in find_all_images

Andy Lester <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
On Jun 16, 2007, at 4:13 PM, Peter Stevens wrote:

> + return if defined $p->{url} && !($image->url && $image->url eq $p- 
> >{url} ); #[1] + return if defined $p->{url_regex} && !($image->url  
> && $image->url =~ $p->{url_regex} ); + return if defined $p-> 
> {url_abs} && !($image->url_abs && $image->url_abs eq $p-> 
> {url_abs} ); + return if defined $p->{url_abs_regex} && !($image- 
> >url_abs_regex && $image->url_abs =~ $p->{url_abs_regex} ); +

But why would $image->url come back as undef?  That should be the  
real thing to check.

--
Andy Lester => [email protected] => www.petdance.com => AIM:petdance
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.