elliottmina
Programmer
I am trying to build a string using a constant, but if I do so with the constant at the beginning of the string, it treats it as a literal.
For example:
use constant FOO => "abc";
print FOO . "def"; # prints FOOdef
print "" . FOO . "def"; # prints abcdef
Any advice? Thanks!
For example:
use constant FOO => "abc";
print FOO . "def"; # prints FOOdef
print "" . FOO . "def"; # prints abcdef
Any advice? Thanks!