Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Writing into files and RegExp

by PerlingTheUK (Hermit)
on Mar 10, 2006 at 10:32 UTC ( [id://535658]=note: print w/replies, xml ) Need Help??


in reply to Re: Writing into files and RegExp
in thread Writing into files and RegExp

Thanks, but that is not the problem. I am using Win32 file with a Win32 Platform. What happens is that a line like
XYABCDEFG 123451234512341234 1 H 56 65
becomes
XYABCDEFG 123451234512341234 1 ^@^@^@^@^@^@^@^@^@^@^@^@...
with the ^@ extending for about roughly 2000 characters.

I have tried this several times and the resulting file always has the same size.


Cheers,
PerlingTheUK

Replies are listed 'Best First'.
Re^3: Writing into files and RegExp
by Corion (Patriarch) on Mar 10, 2006 at 10:42 UTC

    You will need to post some data then, which reproduces the problem, as your code does not show anything that I recognize as triggering such behaviour. Please make sure before posting that no sensitive data gets posted and that the posted data actually produces the behaviour you describe. Although I'm no user of Emacs, the ^@ character could be its interpretation of "\0". Which still is weird, but without seeing your input data, it's hard to tell where it comes from. Also, your Perl version (perl -v) might be of interest.

      I cannot reproduce it on a small file and the actual data is half a GByte. However it seems it is more or less my hard disc that is about to die.

      Cheers,
      PerlingTheUK

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-23 21:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found