OK, so if I understand you correctly you want to generate some JavaScript by your Perl script, then execute the JavaScript and then save somewhere the results, right? Why?!?
In either case you'll need something that can actually run the JavaScript. And looking at the code you have there, it would have to run the JavaScript in the context of a web page ... that is it would have to be a web browser. You might be able to control some browser to load the stuff your Perl script produced, run the JavaScript and maybe even save the results instead of the original HTML, but WHY?!? What is it you really want to do? You are asking about one step, but most likely the whole path is wrong.
In reply to Re: Rendered Source with Perl
by Jenda
in thread Rendered Source with Perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |