http://www.perlmonks.org?node_id=1003806


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 (Chancellor) 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". ;-)