in reply to How to process each node in an HTML page

I'd probably just use WWW::Mechanize::Chrome to run a little bit of JavaScript to find the widest element on a rendered page.

Update: example JS code(not mine), note that you'll want to alter the selector to be a child element of the body tag. examples/javascript.pl.

  • Comment on Re: How to processing each node in an HTML page

Replies are listed 'Best First'.
Re^2: How to processing each node in an HTML page
by nysus (Parson) on Apr 05, 2019 at 12:53 UTC

    Ah, good call. I had forgotten about that feature of WMC. This would be using the $mech->eval method.

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