princepawn has asked for the wisdom of the Perl Monks concerning the following question:

I typed $" into the search engine to find out how it related to takshaka's soln to a file inserting spurious whitespace at the start of each line but did not see anything... so : maybe this should show up in the search engine and: can anyone tell me what this is?

Replies are listed 'Best First'.
Re: code$
by takshaka (Friar) on May 21, 2000 at 05:39 UTC
    $" is the list separator string. All the special variables are described in the perlvar manpage.
Re: code$
by mdillon (Priest) on May 21, 2000 at 05:05 UTC
    the default value of $" is ' ' (space), so printing it might be deceptive. $" is the array print separator, so consider the following code:
    { local $" = ', '; @a = qw(foo bar baz quux); print "@a\n"; }
    which outputs: foo, bar, baz, quux