I am trying to get the ascii equivalent of some items within a flat file. The file is a .jpg picture but the file type isn't important to this problem.
I have the following code.
This code returns the following.
$letw and $leth have chr values but I am unable to get the acsii equivalent.
Could someone explain why the values of $w and $h are 0 and not the Ascii value of $letw and $leth.
Keith
I have the following code.
Code:
open (LOG, "<".$LARGE_PICTURE) || &errormess;
read LOG, $letw, 1, 2;
read LOG, $leth, 1, 3;
close (LOG);
$w=ord($letw);
$h=ord($leth);
print "ed*$letw* - $w <br> *$leth* - $h<br>";
Code:
*ÿ* - 0
*Ø* - 0
Could someone explain why the values of $w and $h are 0 and not the Ascii value of $letw and $leth.
Keith