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

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

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