in reply to Re: printing to a file
in thread printing to a file
In addition...
print uses $, as a "field separator" (the string which goes between elements of the argument list). String interpolation of arrays uses $" for the same purpose.
The following one-liner prints the default value of these variables:
$ perl -e 'print qq{\$,="$," \$"="$""\n}' $,="" $"=" "
but when I print it to a text file, each value in the list has a space added to the front of it.
Actually, the spaces are in between list elements
|
|---|