Thanks for the suggestion. I've looked at them but I'm not really sure how to make them work. Using my browser's devtools, I found specific element I'm wanting to target and did Copy --> Copy Selector. It gave me this:
  body > div.js-amu-container-global > div.gc-page-container > div.gc-container.gc-container--fluid > div > div.layout-2col-content.content-section-padded > div.gc-container > div.comic.container.js-comic-2729847.js-item-init.js-item-share.js-comic-swipe.bg-white.border.rounded > div.comic__wrapper > div.comic__container > div > a > picture
I'm really not sure how to use that. Something like this?
use HTML::Selector::XPath; my $selector = HTML::Selector::XPath->new("div.comic__container"); $selector->to_xpath;
I want to parse that piece of HTML code to find the 'data-image' attribute, which I know resides within there very close to that selector point.

In reply to Re^2: Passing complex html-tag input over command line to HTML TreeBuilder method look_down() properly by sadarax
in thread Passing complex html-tag input over command line to HTML TreeBuilder method look_down() properly by sadarax

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.