Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Issue manipulating data - problem with data file format

by samizdat (Vicar)
on Jan 28, 2008 at 19:26 UTC ( #664756=note: print w/ replies, xml ) Need Help??


in reply to Issue manipulating data - problem with data file format

Without seeing samples, it's a little difficult to do much for you. I'd suggest that you open them up in a binary editor which shows binary on one side and ASCII on the other. BVI and BED are Linux examples, but there are freeware and shareware ones available for That Other Nameless OS(TM) as well. What is probably happening is that some of your files are encoded in 16-bit UniCode characters (or maybe Microsoft Rich Text Format, where formatting codes are injected into the text). Unless you specifically include the appropriate modules into your program and enable the switches in your ReGex matchers, you'll have this problem.

So, first, determine what your encoding is, and then you'll be able to learn the next step or ask a more detailed question.


Don Wilde
"There's more than one level to any answer."


Comment on Re: Issue manipulating data - problem with data file format
Re^2: Issue manipulating data - problem with data file format
by maccas17 (Initiate) on Jan 28, 2008 at 21:29 UTC
    I really appreciate the responses from all three of you, especially given I didn't provide much info. It sounds plausible to me what you are suggesting and I will try and test it out when I have chance. I have managed to bodge my way round it a bit by another very crude (I have much to learn!) script that reads all the files (using type command) and then outputs to a .new version. When I run the .new version with my original script it works fine.

    I do hope to get to the bottom of this in a more intelligent fashion, so I will try out the suggestions.

    OS: Win XP
    Perl v5.8.8

      We all learn from being better able to explain. Glad to help. :D

      Don Wilde
      "There's more than one level to any answer."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://664756]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (19)
As of 2014-07-10 19:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (215 votes), past polls