Your excellencies: I used as an example this
$booty->get("http://www.hotairballooning.com/clubs.php"); @url_array = $bot->find_all_links( text_regex => qr/www/ ); foreach(@url_array){ print $counter += 1, ":"; print $_->url(), "\n"; } # end of foreach
and it works beautifully. However, when I try to apply that same code to another page, it brings nothing, but in this case the urls are not that simply hardcoded but embedded in JS code(yes I know that Mechanize does not work on JS, but not fully exactly know what they mean by "it does not work on JS, it can mean that it won't be able to follow a link that is embedded in a onClick event, OR will it also mean that it won't obey me if I try to use that regex to obtain the URL that is inside this JS code:
onclick="javascript:window.location='http://www.aaaa.org/bbb/cccc.php2 +?id=9244'
It just won't pick it up. Does it mean that the find_all_links method won't work there ? Am I then left with the only option of grabbing the $booty->content() maybe turn it into plain text and then just do the regex on them ? Thank you very much P.Y

In reply to Mechanize find links query by passingby

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.