in reply to Get record separator of a file
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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Get record separator of a file
by afoken (Chancellor) on Nov 14, 2012 at 10:02 UTC | |
by Lotus1 (Vicar) on Nov 14, 2012 at 13:48 UTC | |
by afoken (Chancellor) on Nov 15, 2012 at 06:36 UTC |
In Section
Seekers of Perl Wisdom