in reply to Preventing GET and POST from getting mixed-up
Combining GET and POST stuff is a feature, but I don't like the feature. So for PLP, I did something different.
I wanted hashes. There is string => value data, and hashes are the most Perlish interface. Their elements interpolate much easier than method calls. I have %get for the query string stuff and %post for the POST stuff. %post is not built until you need it. Should anyone like to have these combined into one, then they can use %fields. $get{'foo'} is always one item. If there were multiple foos, they're in the arrayref $get{'@foo'}. I hate being surprised by nullbytes or array references :)
Have a look at PLP::Fields.
Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
|
|---|