in reply to Question about concatenation
from perlop: Binary "." concatenates two strings.
print operates on lists and the comma is the necessary list operator to delimit the elements.
try
print "Counting up: " . join ( "", 1..6 ) . "\n";
or
@arr=1..6; print "Counting up: @arr\n";
Cheers Rolf
|
|---|