While I know that this hash syntax shown below is "legit", that is, it works as I'd expect it to---printing out "M" and "T" respectively---I'm curious as to exactly how perl is interpreting this syntax (which I've only seen once in someone else's code)? I was under the impression that normal hashes could only take single keys. Is there some sort of auto-concatenated key being built out of the 3 list arguments under the covers?
my %myhash = ();
$myhash{"name","sn","init"} = "M";
$myhash{"name","gn","init"} = "T";
print "name-sn-init=$myhash{'name','sn','init'} / name-gn-init=$myhash{'name','gn','init'}\n";
exit;
I've not been able to track down an explanation of this in any of the docs or texts I have. Forgive me in advance if I've overlooked it somewhere. Thanks.

--ted

begin:vcard 
n:Markowitz;Ted
tel;cell:203-984-6565
tel;fax:203-655-7746
tel;work:203-655-7746
x-mozilla-html:TRUE
url:http://www.cognosys.net
org:Cognosys LLC
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chief Architect
adr;quoted-printable:;;10 Hamilton Lane=0D=0A;Darien;CT;06820;USA
fn:Ted Markowitz
end:vcard

S/MIME Cryptographic Signature



Reply via email to