Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: No Control M

by ambs (Pilgrim)
on Apr 08, 2005 at 21:03 UTC ( #446170=note: print w/replies, xml ) Need Help??


in reply to Re^3: No Control M
in thread No Control M

If your default encoding is utf16, \n will have two bytes. If the file is from DOS it will never match.

Alberto Simões

Replies are listed 'Best First'.
Re^5: No Control M
by cazz (Pilgrim) on Apr 08, 2005 at 21:10 UTC
    Well, if thats true, wouldn't \r be the same way?
      Good question. In my experience \r is not the same. My idea is that Perl does not change \r accordingly with the environment.

      Alberto Simões

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2020-04-05 09:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (33 votes). Check out past polls.

    Notices?