|more useful options|
Issue manipulating data - problem with data file formatby maccas17 (Initiate)
|on Jan 28, 2008 at 18:47 UTC||Need Help??|
maccas17 has asked for the
wisdom of the Perl Monks concerning the following question:
Hi, I really struggled and failed to create a meaningful title! Sorry.
I have written a crude perl script to search through all the files in a directory for certain text strings and then collate these strings into one text file. The reason is to allow me to collect configuration information from a number of flat files.
If I create a file(s) and put strings in that will match, it works fine. I have successfully used it on one set of config files, however, another set do not work properly. I have added code to print out each of the lines from my array and the format of the data looks a bit weird. Hard to describe, but it looks like it is in a different font and with additional spaces. Even though these are exactly the same type of config files.
I'm guessing that there is something wrong with these particular files - they were copied straight off the server via the network share (same as the set that work), so it's not like I've FTP them as binary.
Can anyone shed any light as to why these files might be behaving like this?