Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

Is this possible? I want to simply load a page from my company's intranet, pull out all checkboxes that are checked , and somehow put it in a perl structure for further processing. This would be like 1 or 2 lines in Jquery. Unfortunately, my company determines which perl modules (from cpan) to include in their library and HTML::Jquery and pQuery are not among them. If it's not possible to embed the code directly, I guess can figure out how to do this with a perl Html parsing module <sigh>.

Thank you for your time.

Best Regards, Michael

Replies are listed 'Best First'.
Re: embed jquery in perl
by marto (Cardinal) on Jan 02, 2014 at 15:14 UTC

      Apologies for forgetting to mention that... It's simply a perl console script (no CGI involved etc) which will download the html. I want to use jquery simply to parse the html

        I see. How do you fetch the HTML? Does JavaScript populate the values of these checkboxes? Do you have some example HTML you could post?

        Update: If possible it may help if you posted the perl code you currently have.