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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -