Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Virus toy model

by jethro (Monsignor)
on Jun 30, 2011 at 10:48 UTC ( #912145=note: print w/replies, xml ) Need Help??


in reply to Re^2: Virus toy model
in thread Virus toy model^2

I guess you are asking why you can't do this:

%hash=(0=>A); %hash=(1=>B);

Both these operations operate on the whole hash, initializing it with the data on the right side of the equation. The equation sign "=" means literally "the left side is made equal to the right side", not "the right side is added to or combined with the left side". So after the second equation any previous values in the hash will be lost

While when you use $hash{1}=B you only manipulate one value inside the hash, leaving the rest of the hash unchanged.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2022-01-16 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (49 votes). Check out past polls.

    Notices?