[kw-pm] Quick Question

Daniel Allen dada.da at gmail.com
Fri Mar 19 10:19:57 PDT 2010


The sample you posted is OK; I just ran this, and got the expected result:

use CGI;
our $query = new CGI();
    $query->param(-name => "somestring", -value => "somevalue");
    $query->param(-name => "otherstring", -value => "somevalue");

    print join(" + ", $query->param);  # this line doesn't show the
new entry I made
    # outputs somestring + otherstring


On Fri, Mar 19, 2010 at 10:44 AM, Robert Pike <roberthpike at yahoo.com> wrote:
> I'm using the CGI module in one of my scripts but part way down the page I'm trying to add new name/value pairings to the CGI object I have.
> For example :
> our $query = new CGI();
> ...
> ...
> ...
> $query->param(-name => "somestring", -value => "somevalue");
> ...
> print join(" + ", $query->param);  # this line doesn't show the new entry I made
>
> Is there something I need to do differently in order to add additional entries to the object? Later in the script I nee to loop through the query object and currently I can't because my new entries aren't being added. Any info would be appreciated. Thanks.
>
>
>      __________________________________________________________________
> Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
> _______________________________________________
> kw-pm mailing list
> kw-pm at pm.org
> http://mail.pm.org/mailman/listinfo/kw-pm
>


More information about the kw-pm mailing list