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!


In reply to Calling a perl script and passing parameters from html by HannibalRex

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.