in reply to Why Is Writing to a Binary File so Hard?[SOLVED]

Perhaps you need binmode on $out?

                "If it happens once, it's a bug. If it happens twice, it's a feature. If it happens more than twice, it's a design philosophy."

  • Comment on Re: Why Is Writing to a Binary File so Hard?

Replies are listed 'Best First'.
Re^2: Why Is Writing to a Binary File so Hard?
by jmlynesjr (Deacon) on Feb 01, 2024 at 01:02 UTC

    The :raw does the same as binmode. Thanks for the reply.

    James

    There's never enough time to do it right, but always enough time to do it over...

      The code you posted doesn't use :raw on your $out filehandle