in reply to can't locate object method "attr" via package "Mojo::Collection"

"find" returns a "Collection" object, that does not have an "attr" method.

Try writing it like this (untested):

for my $csshref ( map {$_->attr('href')} $dom->find('a[href]')->each( +) ) {

        ...it is unhealthy to remain near things that are in the process of blowing up.     man page for WARP, by Larry Wall

  • Comment on Re: can't locate object method "attr" via package "Mojo::Collection"
  • Download Code