Sanyal, Dibya F (Corporate, consultant) wrote:
> Hi,
> 
> I have 2 arrays. One holds all uniq key values of an associative list
> (all ssn), other holds the associated values (their names). I need to
> create a hash by putting these arrays together. Each entry in that
> hash would be (ssn => name).   
> 
> I can iterate over one array and create the hash. Is there any
> inbuilt function (or a real cool piece of code) that does the same? 

Hasn't this been asked and answered recently?

Anyway, assign to a hash slice:

   my %hash;
   @[EMAIL PROTECTED] = @valuearr;

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


Reply via email to