Your skill will accomplish what the force of many cannot |
|
PerlMonks |
How many defaults of $/ does perl have?by stevieb (Canon) |
on Sep 18, 2015 at 23:15 UTC ( [id://1142473]=perlquestion: print w/replies, xml ) | Need Help?? |
stevieb has asked for the wisdom of the Perl Monks concerning the following question: Semi-related to CPAN module unit test issues: OS line endings, I'm wondering how many defaults of the Record Separator does Perl use? I know on installs of *nix (at least the ones I've used) it'll set $/ to "\n" and on Windows it'll be set to "\r\n", but are there any other situations where $/ will be set to something different? How is perl told what this special variable is? Is it compiled in externally, or can perl tell what kind of system it's being compiled on, and set this default itself? -stevieb
Back to
Seekers of Perl Wisdom
|
|