|Think about Loose Coupling|
Adding a hash to a CGI paramby bradcathey (Prior)
|on Jan 03, 2008 at 15:27 UTC||Need Help??|
bradcathey has asked for the wisdom of the Perl Monks concerning the following question:
It seems like I've seen this done before, but I can't make this work now. I start by assigning a simple hash to a param (BTW, using CGI::Application). Later, I want to add another key-value pair to that param, so:
This, of course, clobbers the original param and I end up with just the new pair. I suppose I could grab all the pairs back into a hash and then add to it:
But this seems a bit verbose. *Is* there a way to do this? What's the concept at work here? Thanks in advance.
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot