>Hi,
>Among other data, a binary file contains the bytes "00A5".
>I am trying to read these four bytes and get the decimal equivalent as




-----


        $POST_DATA =~ s/(\w\w)/chr (hex($1))/eg;

this is a line from one of my programs where i send data from another
program in the form of arguements-  yea, i'm sure there's a better way...
*laugh*


after much experimenting, this gave me the ascii equivalent of a string of
hex values.....   i'm willing to bet that with modifications, you can get
yourself a decimal equivalent 


good luck,



willy
http://www.hackswell.com/corenth 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to