Pretty sure the best short term answer might depend on what happens after selecting 1-9. And also, your TAT (turn around time). If there are not a lot of additional inputs required after making a selection, and you wish to dummy something up quickly I often: use cgi;

There is a pretty good example that used to be in the camel book you can use as a template. I use it all the time, and here is a modified version that you can probably try and run. I think it should work as an example

#!/usr/bin/perl use CGI qw/:standard/; print header, start_html('test_cgi'), h1('Please choose one of the following options.'), h2(' 1) Insert all Apps Belonging to a group'), h2(' 2) Insert groups in database'), h2(' 3) Refresh database group table'), h2(' 4) Add all app from one group to another'), h2(' 5) Get Group ID'), h2(' 6) Get User ID'), h2(' 7) Sync Groups'), h2(' 8) Get list of all apps'), h2(' 9) exit'), start_form, "Enter a your choice from list above: ",textfield('selection') +,p, "Select which to operate on: ", checkbox_group(-name=>'words', -values=>['users','groups','apps'], -defaults=>['users','groups']),p, "What should we do with the selection ", popup_menu(-name=>'color', -values=>['add','show','update','none']),p, submit, end_form, hr,"\n"; print "$endd \n"; if (param) { print "You selected: ",em(param('selection')),p, "Process: ",em(join(", ",param('words'))),p, "To do: ",em(param('color')),".\n"; } print end_html;

In reply to Re: Perl Script to run in web browser by tbone654
in thread Perl Script to run in web browser by cbtshare

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.