in reply to Writing at specific position and length in binary file.

Just use print FH $example.
  • Comment on Re: Writing at specific position and length in binary file.

Replies are listed 'Best First'.
Re^2: Writing at specific position and length in binary file.
by thanos1983 (Parson) on Jan 12, 2014 at 04:44 UTC

    To: no_slogan, I guess this is the simplest and best solution to my problem. I had to do a small modification to my code by writing initially to that point a string with "\0" positions. The reason is that the name can vary and in case of rewriting on top of the previous they might print together with remaining characters. So had to came up with this "small" trick. Thank you again for your time and effort.