in reply to Re: Pushing w/ an associative array?
in thread Pushing w/ an associative array?

And this breaks if someone hands you the perfectly legitimate string of
key1=val1&key2=val2&key3&key4&key5&key6=val6
Please stop open-coding this. Cargo cult crap that breaks. And CGI is a pre-installed module (even if out of date)!

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Re: Pushing w/ an associative array?
by ichimunki (Priest) on Dec 27, 2000 at 22:40 UTC
    Good point.

    But look, it's great to point out the module (which I did), but is that a learning experience? Certainly CGI should be used for handling CGI, but no one answered this poor anon_monk's more general question, which was about handling lists and assigning values to hashes (and sadly, my answer assumed that we were feeding valid pairs in, something I would now know to change). Thus, this poor monk still has no idea how to write Perl to do this when there isn't a module involved. And so we'll have this really great use of modules strung together with the Perl equivalent of baby talk. This is good if the monk is going to immediately put something into production... but is this good for the personal growth of the monk?