last nights' code help worked beautifully...
my @array = ("AOL", "Yahoo", "Ask Jeeves/Ask.com", "Alltheweb", "Alta +Vista", "Lycos", "iWon", "Teoma", "Wisenut", "MSN", "Netscape", "Info +space", "Looksmart"); shuffle(@array); my ($comp1, $comp2, $comp3, $comp4, $comp5) = @array[0..4]; print qq~ <input type="hidden" name="comp1" value="$comp1"> <input type="hidden" name="comp2" value="$comp2"> <input type="hidden" name="comp3" value="$comp3"> <input type="hidden" name="comp4" value="$comp4"> <input type="hidden" name="comp5" value="$comp5"> ~;
in the next sub however, instead of hardcoding the @array values, i need to get the value of 15 form elements. when i use the following:

my @array= param('aware02', 'aware03', 'aware04', 'aware05', 'aware06' +, 'aware07', 'aware08', 'aware09', 'aware10', 'aware11', 'aware12', ' +aware13', 'aware14');
i get the param name - not the value. what am i doing wrong?!

thanks again...

felwick


In reply to random array - a newer twist by felwick

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.