Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: What does ".=" mean?

by marto (Archbishop)
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026452]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2018-05-24 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?