Contents Up Previous Next

3.3 More about strings

In perl, strings and numbers are seemlessly converted into each other depending on the context in which they are used.

print (("5" + "6"), "\n");
print ((56 . 23), "\n");

The output of this program is:

11
5623


Contents Up Previous Next