Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026452]
[LanX]: auto-subtitles in YT are entertaining: "fuehrer" instead of fewer, "jews" instead of juice ...
Discipulus never noticed there was subtitles... can I call them with &subtitle or is too much perl 4?
[LanX]: YT=youtube
[Discipulus]: ;=) yes i'm not SO dumb
[LanX]: SO=StackOverflow

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2017-06-23 16:36 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (552 votes). Check out past polls.