Gohaku wrote:
> 
> Hello everyone,

Hello,

> I would like to know if there is a cleaner way of Merging Hash Keys
> with Arrays
> and what the correct terminology is for describing this merging.
> I find the syntax somewhat confusing since @ usually refers to an Array

or a slice.  Lookup the word "slice" in the perldata document.

perldoc perldata

> while
> % refers to a Hash
> 
> @array = qw(1 2 3 4 5);
> 
> #Hash Key and Array Merging...
> @[EMAIL PROTECTED];
> #OR.... @[EMAIL PROTECTED] = "";

Both of those examples only assign a value to one of the keys in %VALS. 
Is that what you really want to do?

> #.......fin
> 
> print join(" ",sort keys %VALS),"\n";
> #1 2 3 4 5



John
-- 
use Perl;
program
fulfillment

-- 
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