Hello, first post! Glad to be here! Please impart your Perl wisdom!

I am trying to write a script that automatically reserves racketball for me. I will use shell commands to have the program initiate at a certain time (when reservations are open), and Perl will run through the steps of making the reservation.

I can use mech to submit the forms to log in, etc, and otherwise navigate to the spot where reservations are made. The problem is the reservations are made through JavaScript (an  onclick attribute which calls a JavaScript function which pushes the reservation).

So the big question is: What is the Best way to go about calling that JS function through Perl?

If the answer is the JavaScript plugin, I might need more Perl wisdom on how to solve this when running the install command on Windows 7, Strawberry Perl 5.16.2.2-64bit

Non-zero exit status: 13 Parse errors: Bad plan. You planned 17 tests but ran 6. Files=31, Tests=3256, 12 wallclock secs ( 0.55 usr + 0.08 sys = 0.62 + CPU)
Result: FAIL

But I don't want to get ahead of myself...

Thanks!


In reply to WebScripting, Need to Call JavaScript Function Through Perl, Not sure how! by rmurphy2718

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.