Welcome to the Treehouse Community
Looking to learn something new?
Vincent Asta2,330 Points
Is it possible to have a web server execute a Perl script using a js variable captured from a prompt to a user?
For example: 1.) Web page (with .js file) is loaded on end user's machine 2.) .js prompts user for a variable 3.) variable 'blah' is captured 4.) Perl script is then executed with blah passed to it 5.) The result from that Perl script is returned to the web page for the user to view (alert, another page, etc.)
I'm hoping this makes some sense, not sure if I am formulating the question correctly, or if there is more info I can provide which would be helpful.
I just wanted to know if I am 'on the right track' so-to-speak, or if I should go down another track, i.e. PHP, RoR, etc.
Chris Shaw26,650 Points
First off just a quick FYI that w/ is short for without, I've updated your posts title so it's not confusing.
I'm typing this on my mobile so it's a bit hard to get some running examples but if you see the below link it has a lot of useful information until I get into work.