Robert's Perl Tutorial

http://www.sthomas.net/roberts-perl-tutorial.htm


Concatenation

There is another joining operator, this time the humble dot, or period: . . This concatanates (joins) variables:

$x="Hello";
$y=" World";
$z="\n";

print "$x\n";           # print $x and a newline

$prt=$x.$y.$z;          # make a new var $prt out of $x, $y and $z

print $prt;

$x.=$y." again ".$z;    # add stuff to $x

print $x;