Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by davido (Cardinal)
on Feb 04, 2005 at 08:24 UTC ( #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
Node Status?
node history
Node Type: note [id://427984]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2020-11-24 04:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?