Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Extending a hash

by bart (Canon)
on Apr 21, 2011 at 11:26 UTC ( [id://900578]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    our $red = 10;
    our $green = 6;
    my $apples = 'red';
    $$apples--;  # eat an apple
    print "I've got $red red apples, and $green green ones.\n";
    
  2. or download this
    our @bob;
    my %hash;
    $hash{a} = 'bob';
    $hash{a}[0] = 1;
    print "\@bob contains: [@bob]\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://900578]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found