|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Check if hash key value pair is definedby tobyink (Prior) |
| on Nov 15, 2012 at 07:13 UTC ( #1003944=note: print w/ replies, xml ) | Need Help?? |
|
In a standard Perl hash, a key can only have one value. (Though that value could be a reference to an array.)
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||