in reply to Re: Having trouble getting WWW::Mechanize::Firefox->xpath to return expected results
in thread Having trouble getting WWW::Mechanize::Firefox->xpath to return expected results

Thanks Corion!

The mech method was a bad edit on my part. Fixed.

So your code worked, but I'm not quite sure how or why $_->{href} extracted the href property from @links. When I dump @links I get some really hairy looking objects. That's why I tried converting them to a string in the first place.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

  • Comment on Re^2: Having trouble getting WWW::Mechanize::Firefox->xpath to return expected results
  • Select or Download Code

Replies are listed 'Best First'.
Re^3: Having trouble getting WWW::Mechanize::Firefox->xpath to return expected results
by Corion (Patriarch) on Apr 03, 2016 at 20:01 UTC

    The objects look so hairy because they live in Firefox and have some Perl code that fetches the values from Firefox.