That's fine, nothing wrong with asking basic questions. And I agree, it can be difficult to find the right perldoc page when you don't already know what to look for. But do take a look at perldoc.perl.org; it's fairly well-organized, as well as searchable (though unfortunately not for tokens like $").

If you're serious about Perl programming, I'd also recommend picking up a copy (or getting your employer to pick up a copy) of Programming Perl, aka "The Camel". It's an excellent, must-have book, and it has a big reference section.

There's even a chapter on special variables, which also provides a clear and concise answer to your original question (p. 655 in the third edition):

Program-wide Special Variables

These variables are truly global in the fullest sense -- they mean the same thing in every package, because they're all forced into package main when unqualified (except for @F, which is special in main, but not forced). If you want a temporary copy of one of these, you must localize it in the current dynamic scope.

[...]
$" ($LIST_SEPARATOR)
[...]

There's gentler introductions to Perl if you're new to it, but as a general reference, it's invaluable.


In reply to Re^3: Scope of separator variable by AppleFritter
in thread Scope of separator variable by shadowSage

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.