vnpandey has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks, In my programme the value of output record seperator
is fixed as newline in the begining of the prgramme itself
(This I verify as when I print it in the first executable
line of programme).. I don't know how is it fixed like this
by default?or I have fixed it some-how in my programme itself
? any-way I have not used it any-where in my programme except
to print it in the first line executable line..Please help:
- Thanks :V.N.Pandey
Re: output record seperator!
by neshura (Chaplain) on Aug 27, 2000 at 10:14 UTC
|
Doh! Updating because it is late and I misread...$\ is set to newline by default. You may choose to set it to something else. Check perlman:perlvar for more information. e-mail neshura | [reply] |
|
actually, $\ is set to undef by default.
perhaps vnpandey's code is using a module that sets $\
before it is printed.
i ran the following on my system and it showed me that $\
hadn't yet been set:
perl -e "print '$\ undefined', $/ unless defined $\;"
outputs (for me):
$\ undefined
| [reply] [d/l] |
Re: output record seperator!
by tye (Sage) on Aug 29, 2000 at 07:24 UTC
|
| [reply] |
|