Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Concerning hash operations (appending, concatenating)

by RazorbladeBidet (Friar)
on Mar 24, 2005 at 16:24 UTC ( #442097=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my %hash = ( a => 'b' );
      # do stuff
      %hash .= ( e => 'f', g => 'h', i => 'j' );
    
  2. or download this
     $hash{'e'} = 'f';
     $hash{'g'} = 'h';
     $hash{'i'} = 'j';
    
  3. or download this
      my @vals = qw( f h j );
      my $i = 0;
      $hash{$_} = $vals[$i++] foreach qw( e g i );  
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://442097]
Approved by friedo
Front-paged by kvale
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-12-25 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls