HannibalRex has asked for the wisdom of the Perl Monks concerning the following question:
So I have a perl script that someone else wrote, accepts command line parameters to run, I'm trying to "web enable" this script. The way I think of it is a form submit/post to the script, and the script accepts the values passed to it from entries on the web page. For example, this script creates a given number of random numbers based on a seed, so on the cmd lind it looks like ./numgen.pl --numcards=10000 --seed=25 --blurb="10000 cards for JoMama" Can someone point me to a reference on how to do this? I've been told it would be best to do it in Python and use a system call, which I honestly have no idea how to do. So, I'd really like to know how to do this, not just hack it. I'm really needing a push in how to do this, and where a good reference may be located. Everything I keep googling just seems too complicated, or not really what I am looking for. Is it not common to use a web interface to do sys or db activities through perl? Sorry, I'm an old C guy, so I don't really understand the web parts of perl and or python yet. TIA!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Calling a perl script and passing parameters from html
by Anonymous Monk on Nov 17, 2012 at 00:39 UTC | |
by Anonymous Monk on Nov 17, 2012 at 00:53 UTC | |
|
Re: Calling a perl script and passing parameters from html
by Jenda (Abbot) on Nov 17, 2012 at 17:26 UTC |