locked0wn has asked for the wisdom of the Perl Monks concerning the following question:
I am pretty new to perl. I have recently read the following item from the monks:
Link to Javascript::SpiderMonkey Sample
I applaud the author for their work. Thanks. I understand learning more about this was left by the author of the write, as an exercise, but I am still confused. The main part for confusion is the section that has the following:
I don't understand how one is suppose to figure out what to use here for a given script that I am trying to process. Is there anyone out there that can explain this in a little more detail, please?$js->property_by_path("document.location.href"); $js->property_by_path("window"); $js->property_by_path("navigator.userAgent"); $js->property_by_path("navigator.appVersion"); $js->function_set("toLowerCase", sub {return lc($_[0]); }); $js->function_set("javaEnabled", sub {undef});
in a generic manner that should work for most scripts? Thank you for your patience with this beginner.$js->property_by_path..... $js->function_set.....
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Javascript::SpiderMonkey setup question
by Anonymous Monk on Feb 26, 2010 at 00:10 UTC | |
by locked0wn (Acolyte) on Feb 26, 2010 at 03:03 UTC | |
by Anonymous Monk on Feb 26, 2010 at 03:10 UTC |