Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Hash not getting updated

by CharlesClarkson (Curate)
on Apr 30, 2005 at 07:04 UTC ( #452810=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @array = ( 'white', 'blue', 'yellow' );
    my %hash;
    @hash{ @array } = @array;
    
  2. or download this
    my %hash;
    @hash{ 'white', 'blue', 'yellow' } = ( 'white', 'blue', 'yellow' );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://452810]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2018-07-19 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (407 votes). Check out past polls.

    Notices?