I drew this up real quick while debating with my coworkers on where to go for lunch. If your coworkers are the gambling sort, they should like the program too.
use CGI ':standard'; print header, start_html('dinner delimma disposer'); if ( param('number') > 1 ) { print h1('Going to lunch [Step 2]'),p , "Where do you want to go?",sta +rt_form('Post',url()); for (1 .. param(number)) { print textfield("R","restaurant $_ ",50 +,50),br; } print hidden('hide',param(number)),submit(),endform; } elsif ( param('R') ) { @places = param('R'); @respond = ("That was an easy choice!","Why was that so difficult?","W +hat a no-brainer!!!!","Duhhh!"); @choose = ("I'd go to","I choose","Let's go to","It's been forever sin +ce I've had","I know we ate there last week, but I love", "I want some man food at","You're driving to"); print h1($respond[rand @respond].' ' .$choose[rand @choose].' '.$plac +es[rand @places].'!'); } else { print h1('Going to lunch [Step 1]'), p , "How many people want to go?" +,start_form('Post',url()), popup_menu('number', ['1','2','3','4','5','6','7','8'], '4'),submit(), +endform; } print end_html;

In reply to what to do for lunch by silent11

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.