in reply to Determining the regex for foo=bar

I want is to make a hash that looks like this:

%hash = { "foo" => "bar" "foo" => "bar bar" )

You can't! A hash cannot contain duplicate keys.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"

Replies are listed 'Best First'.
Re^2: Determining the regex for foo=bar
by japhmi (Novice) on Mar 12, 2010 at 00:14 UTC
    Now I feel dumb for that in my example. Yes, there will be no duplicate keys.