Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: crlf layer working on diamond operator, but not filehandle reads

by ikegami (Pope)
on Nov 23, 2011 at 01:40 UTC ( #939576=note: print w/replies, xml ) Need Help??


in reply to Re^2: crlf layer working on diamond operator, but not filehandle reads
in thread crlf layer working on diamond operator, but not filehandle reads

only seemed to work for files read by the empty diamond operator

I proved otherwise.

  • Comment on Re^3: crlf layer working on diamond operator, but not filehandle reads

Replies are listed 'Best First'.
Re^4: crlf layer working on diamond operator, but not filehandle reads
by rebugger (Acolyte) on Nov 23, 2011 at 19:54 UTC

    Your example did not work for me, and I am still unsure why. Output was Carriage return in myfile.csv at -e line 12, <INPUT> line 1. I was getting inconsistent results running it as perl -e '[BLOCK OF CODE]' myfile.csv and as perl code.pl myfile.csv. This was with Perl 5.10.1 running in Cygwin. I'm guessing it has something to do with Cygwin.

      I don't know how cygwin (which emulates a system that uses CRLF line endings) interacts with the rest of the system (which uses CRLF line endings). It is definitely a likely cause. My guess: It placed \r\r\n in the .csv.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939576]
help
Chatterbox?
[stevieb]: yeah. This is my build/test software that manipulates perlbrew/ berrybrew, and runs all unit tests of a project against all installed versions, including testing a dist against all of it's current revdeps. A lot of tests it runs for itself:)
[stevieb]: testing the test build system, essentially

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2017-03-26 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (315 votes). Check out past polls.