Hello,

What is the best (shortest) way to define a hash where different keys have same values:

%my_hash = { 1 => 'something', 2 => 'something', 3 => 'something else'};

Is there a way to write something like:

%my_hash = { 1,2 => 'something', 3 => 'something else', etc...}

Thanks

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to