perl assign string on multiple lines -
perl assign string on multiple lines -
i'd able assign concatenation of multiple strings variable.
i'm looking this:
$variable = 123 $string = "hello" + "this " + $variable + "string";
is possible along these lines in perl?
from perlop #additive operators:
additive operatorsbinary +
returns sum of 2 numbers. binary -
returns difference of 2 numbers. binary .
concatenates 2 strings.
therefore, string concatenation need:
$string = "hello" . "this " . $variable . "string";
perl
Comments
Post a Comment