At 21:47 2004-09-07, David D Miller wrote:
My problem is to read a hex value from a file and process it in binary.
For instance, I read a file containing data of the form 0x0b4f. Then I
need to mask/shift etc that data before displaying it.
You probably want hex().
perl -e "print hex('0x0b4f')"
perl -e "printf('%x', hex('0x0b4f'))"
perldoc -f hex
/J
-------- ------ ---- --- -- -- -- - - - - -
Johan Lindström Sourcerer @ Boss Casinos johanl AT DarSerMan.com
Latest bookmark: "TCP Connection Passing"
http://tcpcp.sourceforge.net/
dmoz: /Computers/Programming/Languages/JavaScript/ 12
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs