Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: What does ".=" mean?

by marto (Bishop)
on Apr 01, 2013 at 09:50 UTC ( #1026452=note: print w/ replies, xml ) Need Help??

in reply to What does ".=" mean?

. is for string concatenation (see Additive operators), = is an assignment operator.

my $messageText = "This is some text\n"; $messageText .= "Add more text here\n";

Is the same as:

my $messageText = "This is some text\n"; $messageText = $messageText . "Add more text here\n";

Update: added brackets to link, fixed typo

Comment on Re: What does ".=" mean?
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2015-07-05 10:54 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (64 votes), past polls