Pathologically Eclectic Rubbish Lister | |
PerlMonks |
RE: A few style suggestionsby chip (Curate) |
on Aug 11, 2000 at 05:53 UTC ( [id://27438]=note: print w/replies, xml ) | Need Help?? |
WRT s/\r?\n$// ...
It may seem like a minor point, but I'd rather not depend on the values of \r and \n any more than I have to. And I really don't like using $ in patterns when I'm actually thinking about newlines (what with it matching before a trailing newline, and all). My version of the above, if I'm in full-blown portability mode: (Macs use single CRs as line endings....) -- Chip Salzenberg, Free-Floating Agent of Chaos
In Section
Seekers of Perl Wisdom
|
|