Jan 6, 2001, 6:47 AM
Post #2 of 3
That whitespace is due to you evaluating an array in double quotes. Doing that places a space in between each element of the array. To get around this, try using join(), or change the $" variable to an empty string.
Also, please avoid useless quoting of variables, since it can cause problems, like the one you just encountered.
$file = join "", @all; # instead of "@all"
Jeff "japhy" Pinyan -- accomplished hacker, teacher, lecturer, and author
print $file; # instead of print "$file"
print @lines; # instead of print "@lines"