in reply to Clicking a checkbox using www::mechanize
It is correct, but it won't do what you want it to do. WWW::Mechanize emulates a browser without javascript.
If you want the script to work you will need to either fake the javascript or embed JavaScript::SpiderMonkey which is almost always too much work.
Have fun! (and see this thread WWW::Mechanize and javascript)
Updated: The usage is not correct as jeffa points out. Must remember to check facts that I 'know'.
In Section
Seekers of Perl Wisdom