alright. i can't say i fully understand your msg. i'm not that advanced of a Perl'er...so, I'm thinkin i will change:
sub get_params() { #* # to get the URL parameters, and package # them into a handy little scalar fit #* #@_; # (no parameters) my $cgi = CGI->new(); my $query = join('&', map { $_ . '=' . $cgi->param($_) } $cgi->param +()); return $query; # a scalar of all URL parameters, each value separate +d by an & #usage: my $url_params = get_params(); }
to
sub get_params() { #* # to get the URL parameters, and package # them into a handy little scalar fit #* #@_; # (no parameters) my $cgi = CGI->new(); my $query = map { $_ . '=' . sanitize($cgi->param{$_}) } map { sanit +ize($_) } $cgi->param(); return $query; # a scalar of all URL parameters, each value separate +d by an & #usage: my $url_params = get_params(); }

hopefully that achieves what i'm looking to do. as for "assuming $cgi->param('someval')" returns a list, i don't think it does. it returns a scalar. could be wrong, but it's how i see it getting used everywhere (my $p = $cgi->param("p");)

I was pondering why the ball was getting bigger, and then...it hit me!

In reply to Re^4: problem with Crypt::PBKDF2 by jamroll
in thread problem with Crypt::PBKDF2 by jamroll

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.