I am dealing with some legacy code, so bear with me. What I have in the program is a string that looks like this:
$string='&day=12&month=5&year=1992'; #but it is about 15 parameter pairs long
I need to get this to a hash along the lines of
%hash=( day => 12, month=> 5, year=>1992);
but due to my own dumbness, I can't come up with anything that isn't about 35 lines long. Can anybody help me out on something a little more elegant and easy to deal with?