- or download this
$foo = "bar";
print $foo, "\n";
- or download this
print($foo,"\n");
- or download this
($a,$b,$c) = (1,2,3); # started off easy
# does the expected
- or download this
$a,$b,$c = (1,2,3); # left side acts weird
- or download this
$a,$b,$c = 1,2,3;
- or download this
print(1),print(2),print("\n");
# output
# 12 - followed by newlin
- or download this
print 1;
print 2;
print "\n";
- or download this
print 1, print 2, print "\n";
# output
[blankline]
2111
- or download this
print(1),print(2),print("\n");