I use my own little function saves using 100k modules.
sub parse_input { # Get the form input.. read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); # get the commandline URL input.. $buffer .= '&'.$ENV{'QUERY_STRING'}; $buffer =~ s/%26/*amp*/g; $buffer =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg; $buffer =~ tr/\+/ /; @pairs = split(/&/, $buffer); foreach $pair (@pairs) { ($name, $value) = split(/=/, $pair,2); $value =~ tr/==/=/; # convert back to $value =~ s/\*amp\*/&/g; $value =~ s/\*plus\*/\+/g; if($name ne '') { if($params{$name} eq '') { $params{$name} = $value; # build hash array } else { if($name ne 'pid') { $params{$name} .= $params_delim.$value; } } $this_field_name = '$'.$name; $this_param_value = $params{$name}; eval($this_field_name.' = &tokenise("'.$this_param_value.'")'); } } return $buffer; }
This gives you access to all form input and URL params like this:
http://www.wolispace.com/cgi-bin/a.pl?username=wolis print $params{'username'}; print $username;
All comments on improving this are welcome however Im sure most Monks will say use CGI :-)
___ /\__\ "What is the world coming to?" \/__/ www.wolispace.com

In reply to Re: the search string and me by wolis
in thread the search string and me by deveyus

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.