|go ahead... be a heretic|
Re^2: Get record separator of a fileby afoken (Parson)
|on Nov 14, 2012 at 10:02 UTC||Need Help??|
You could use the unix file command to determine the file type and then you'll know what you need to do for the file types you're handling.
file(1) just guesses, based on some magic constants, and it often guesses wrong.
Also file will try to guess the separator for text files.
No. It detects line endings, but not record separators for CSV files:
I think there's a cpan module for this but I've never used it -- does anyone know anything about it?
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)