Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: chop() and chomp()

by davorg (Chancellor)
on Jan 02, 2002 at 15:39 UTC ( [id://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.

--
<http://www.dave.org.uk>

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2025-02-09 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (95 votes). Check out past polls.