Happy New Year to you all! For my sins I'm a configuration manager and am currently working on getting a large application that's spread over a number of DEC servers into my configuration database. I've wrtten a number of perl scripts to sort the thousands of files and now have them neatly arranged ready to be input, but have realised I've another problem.
My software imports the files as binary or ascii depending upon their extension, but many of these files do not have any extension in their name, so I'm going to have to sort them into binary or ascii prior to importing. So to the problem - can anyone advise me how to detect whether a file is ascii or binary using perl?
My software imports the files as binary or ascii depending upon their extension, but many of these files do not have any extension in their name, so I'm going to have to sort them into binary or ascii prior to importing. So to the problem - can anyone advise me how to detect whether a file is ascii or binary using perl?