> >>
> > #  foreach $number (qw <en tre ni>) {
> >   foreach $number ($extract) {
> >      push (@return_array, $hash_table{$number});
> >   }
> >   return @return_array;
> 
> return @hash_table{ @extract };
> 
> >>>>This will return a list of values from %hash_table using 
> the keys from
> >>>>@extract.
> 
> Please explain why this works.  thank you.

perldoc perlreftut
also read Ch 8-9 of Programming Perl 3rd Ed  if you have it.
--
it will be much clearer if you read about it then have someone briefly
explain it.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to