Hi, I am a new Perl fan from China, during the study, I found that there is difference between the Web Server of my company and the ones of others. If I use it like: @arry=<stdin>;print @arry; Then I will see a special file, like the following:
<form method="POST" action="mycgi.pl"> Your name:<input type="text" name="T1" size="20"> Your sex:<input type="radio" value="V1" checked name="R1"> <input type="radio" name="R1" value="V2"> What color you like:<input type="checkbox" name="C1" value="red">red <input type="checkbox" name="C2" value="green">green <input type="checkbox" name="C3" value="blue">blue What sport you like :<select name="D1" multiple size="1"> <option value="football">football</option> <option value="basketball">basketball</option> <option value="running">running</option> </select> tell me others:<textarea rows="2" name="S1" cols="20"> </textarea> <input type="submit"><input type="reset"> </form>
When I apply such form, and view the code of the webpage, it will appear as
<NAME> T1 zhang <NAME> R1 V1 <NAME> C1 red <NAME> C2 green <NAEM> D1 football <NAME> D1 basketball <NAME> S1 i love you! <NAEM> S1 i love this game!
How can I use a fixed module to make the names and the values of the variables 1 to 1, like:
C1=red;D1=(football,basketball);S1=(i love you!,i love this game)
Thanks a lot in advance

In reply to a Perl question by 2perl

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.