Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

output record seperator!

by vnpandey (Scribe)
on Aug 27, 2000 at 10:07 UTC ( [id://29865]=perlquestion: print w/replies, xml ) Need Help??

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

Replies are listed 'Best First'.
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

      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

Re: output record seperator!
by tye (Sage) on Aug 29, 2000 at 07:24 UTC

    Perhaps the script starts with "#!/usr/bin/perl -l"?

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://29865]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found