Re: Building hash record

2007-05-21 Thread John W. Krahn
Rodrick Brown wrote: > I have a few hundred records in a file like the following > a:1 > a:2 > a:3 > b:1 > b:2 > b:3 > > I'm trying to build a hash of where the values on the left is the key and > for each value on the right is an array containing the coresponding values > I hope this makes sense

Re: Building hash record

2007-05-21 Thread Jeff Pang
Rodrick Brown 写道: I have a few hundred records in a file like the following a:1 a:2 a:3 b:1 b:2 b:3 I'm trying to build a hash of where the values on the left is the key and for each value on the right is an array containing the coresponding values I hope this makes sense $a{$a} = [EMAIL PROT

Building hash record

2007-05-21 Thread Rodrick Brown
I have a few hundred records in a file like the following a:1 a:2 a:3 b:1 b:2 b:3 I'm trying to build a hash of where the values on the left is the key and for each value on the right is an array containing the coresponding values I hope this makes sense $a{$a} = [EMAIL PROTECTED] where @value