Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

hash, a troublemaker?

by Doraemon (Beadle)
on May 12, 2004 at 03:28 UTC ( [id://352638]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %hash;       
    $hash{'name'} = "Doraemon";
    ...
    #... some code
    # oh! my birthday, i'm getting older
    $hash{'ege'} = "1001";   # oops, i just add new key
    
  2. or download this
    $k_name = 'name';
    $k_age = 'age';
    
    $hash{$k_ege} = "Do";   # warning, gotcha!
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 04:04 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found