<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<div><div class="ecxWordSection1">How can I use Perl to read a non-text file in hex, change a few individual bytes, and write it back? Would this work to change a gif or png, or would I have to go down to binary?<br><br>I appreciate the ImageMagic answer I received before, and may have to resort to that, but I would prefer to work with pure Perl without loading a module. Surely there is a simple way to read/write a file byte by byte?<br><div><p class="ecxMsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<br>
Jerry Kassebaum</span></p>
</div>
</div>


<br></div>                                    </div></body>
</html>