in reply to Re^4: Project Help: Mechanize::Firefox - Scraping Websites with Javascript
in thread Project Help: Mechanize::Firefox - Scraping Websites with Javascript

What do you mean by "a hex"?

You will need to learn Javascript and understand how Javscript types map to Perl.

If you mean to access packageContests[0].n instead of packageContests.n, that means you need to do it different on the Perl side as well. You will need to treat packageContests as array reference instead of a hash reference:

print $packageContests->[0]->{n};

The data structures are mapped between Perl and Javascript, but you will need to understand the data structure itself to make use of it.

Replies are listed 'Best First'.
Re^6: Project Help: Mechanize::Firefox - Scraping Websites with Javascript
by jdlev (Scribe) on Sep 23, 2014 at 17:53 UTC
    Sorry, I meant hash, and your solution worked! :)

    Thank you Thank You THANK YOU!!! You will receive many votes :)

    I love it when a program comes together - jdhannibal