|Just another Perl shrine|
Re: Get record separator of a fileby karlgoethebier (Curate)
|on Nov 13, 2012 at 19:42 UTC||Need Help??|
You are right, bad asked question, sorry. Perhaps it should better have been something like: How can i determine the record separator...in the most efficient way?"
Background is: i have many files to process with different record separators. Filenames change as well as suffixes a.s.o. And the files are large.
I have an XML file that provides information where to search for the files, what to do with them a.s.o. Easy to place the right Tie:File recsep option there.
Else i have to get the recsep from each file before i process it. And benchmark myself what's best.
I hope this doesn't it make worse. Please also keep in mind that i'm not a native english speaker.
Thank you for your help and best regards, Karl
«The Crux of the Biscuit is the Apostrophe»