String concatenation in perl?

Using Perl’s dot operator:
$name = ‘checkbook’;
$filename = “/tmp/” . $name . “.tmp”;
Using Perl’s join function
$name = “checkbook”;
$filename = join “”, “/tmp/”, $name, “.tmp”;
Usual way of concatenating strings
$filename = “/tmp/${name}.tmp”;
 

Search Topics

Popular Posts