in reply to Hashes and Cookies (or more to the point, strings)
Fortunately, an array of key/value pairs can be assigned to a hash with the desired result. This often appears in code as
where the => operator is a pretty replacement for a comma.%hash = (key1 => value1, key2 => value2);
In your specific case, you want to split() the cookie string on commas, and assign the resulting array to your hash variable. Check the perldocs for details :)
|
|---|