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 operators

binary + 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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -