[Israel.pm] HASH with 3 key items

Tal Kelrich tal at musicgenome.com
Thu Jun 28 05:45:33 PDT 2007

On Thu, 28 Jun 2007 15:30:33 +0300
"Ernst, Yehuda" <yernst at nds.com> wrote:

> Hello!
> I want to manage a list with 3 key items 
> i want ( adders , name , title  = > phone)
> i need to check my list and  only if the 3 matches i need to extract
> the phone number can i do it with hash or i need something else?


You probably want to concatenate the keys together, ie.
my $key = join "-",$adder,$name,$title;

Tal Kelrich
PGP fingerprint: 3EDF FCC5 60BB 4729 AB2F  CAE6 FEC1 9AAC 12B9 AA69
Key Available at: http://www.hasturkun.com/pub.txt
If the human brain were so simple that we could understand it,
we would be so simple we couldn't.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://perl.org.il/pipermail/perl/attachments/20070628/e8551420/attachment.pgp 

More information about the Perl mailing list