Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: chop() and chomp()

by davorg (Chancellor)
on Jan 02, 2002 at 15:39 UTC ( #135657=note: print w/replies, xml ) Need Help??

in reply to chop() and chomp()

this could also be \r\n if on windows platform

Did you try this?

\n is a logical end of line character which is mapped to the correct physical value by Perl's IO library. If this wasn't true, then porting apps from Unix to Windows would be a lot harder than it currently is.


"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://135657]
[erix]: sorry, my attention is a rar commodity. I will not squander it on such pro-russia sites :)
[erix]: *rare commodity
[shmem]: erix: you are utterly mistaken in marking that site as "pro-russian".
[erix]: how do you mean? the bear, explanations of Putin's "election", the fearsome new russian weaponry. I came across them immediately. Just coincidence?
[shmem]: No, not coincidence - prejudice and bias
[shmem]: your scanner is pre-loaded ;-)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2018-03-19 21:06 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (246 votes). Check out past polls.