. 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
In reply to Re: What does ".=" mean?
by marto
in thread What does ".=" mean?
by anaconda_wly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |