in reply to Get record separator of a file
Um ... you have to know the record separator before hand. That's not something that's intrinsic to a file.
If you're asking how to specify the record separator for Tie::File, that's in the Tie::File documentation.
In Section
Seekers of Perl Wisdom