Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Get record separator of a file

by Lotus1 (Curate)
on Nov 14, 2012 at 13:48 UTC ( #1003806=note: print w/replies, xml ) Need Help??


in reply to Re^2: Get record separator of a file
in thread Get record separator of a file

No. It detects line endings, but not record separators for CSV files:

/tmp>echo "foo;bar;baz" > testme /tmp>echo "1;2;3" >> testme

You seem to be confusing record separators and field separators. The line ending is the record separator and the ';' is the field separator.

Replies are listed 'Best First'.
Re^4: Get record separator of a file
by afoken (Monsignor) on Nov 15, 2012 at 06:36 UTC
    You seem to be confusing record separators and field separators.

    Yes, unfortunately I did.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003806]
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.