good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: simplifying a CGI param requestby brian_d_foy (Abbot) |
on Apr 07, 2006 at 17:24 UTC ( [id://541932]=note: print w/replies, xml ) | Need Help?? |
You don't need to store these in separate variables to use them. Just access the right thing with param when you need it:
If you really must import these, you could use an array (since you know they are ordered). You can fill in the element with index 0 with undef just to keep the numbers straight.
If you really wanted these things in a variable, you can use the CGI::import function to do it all at once. It ends up creating package variables though, so it's usually not a good idea.
In Section
Seekers of Perl Wisdom
|
|