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.
Also file will try to guess the separator for text files.
I think there's a cpan module for this but I've never used it -- does anyone know anything about it?
In reply to Re: Get record separator of a file
by RichardK
in thread Get record separator of a file
by karlgoethebier
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |