How do I call a javascript file from perl? The file is purely javascript (.js), so it has syntax problems when read as a perl file. The perl file is in the same folder as the javascript file (called script01.js). Thanks for any help.
you probably shouldn't be calling a javascript file from a perl script, you should be calling the javascript file from the html document it's associated with. Why do you need to call a javascript from a perl script? Do you just want to print the javascript into some html output?
The javascript has a calendar function that I want to use to populate a date field. There is no html file associated with the javascript, only a perl file is used to generate html.
well, javascript is executed by a browser, perl can't execute javascript. There is a module though that I think can run javascript, but I have no experience with it:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.