in reply to What does $/ = "\/\/\n"; mean?

$/ is the input record separator. As dmmiller2k said, you can read all about it at the docs.

But what does setting it to THAT value do?

Only the person that wrote it really knows the answer to that question. Taking a quess, i would say that they were reading in a file and using the delimiter "//\n" to 'break it up' in an uncommon place. The most common place to 'break up' a file is after each newline.

You will probably never need to do this or even worry about it. Especially if you are new to Perl.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
F--F--F--F--F--F--F--F--
(the triplet paradiddle)

Replies are listed 'Best First'.
Re: (jeffa) Re: wanna ask
by jlongino (Parson) on Jan 11, 2002 at 20:43 UTC
    You will probably never need to do this or even worry about it. Especially if you are new to Perl.
    Heh, just an interesting side note. One of my first Perl projects was to modify prewritten scripts used for Radius time accounting. The data munging was all based on $\ = '', $PREMATCH and $POSTMATCH. Not a pleasant introduction to Perl. Fortunately, I had a camel. Unfortunately, the monastery didn't exist yet.

    --Jim