Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: what does $hash{$k} .= "{$v}"

by davido (Cardinal)
on Feb 04, 2005 at 08:24 UTC ( [id://427984]=note: print w/replies, xml ) Need Help??


in reply to what does $hash{$k} .= "{$v}"

It is an assignment and a concatenation all in one. Here are a few other variants:

$string .= " world."; # Concatenate and assign. Same as... $string = $string . " world."; $num += 5; # Add and assign. Same as... $num = $num + 5; $num -= 5; # Subtract and assign. Same as... $num = $num - 5; $num *= 5; # Multiply and assign. Same as... $num = $num * 5; $num /= 5; # Divide and assign. Same as... $num = $num / 5;

Dave

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found