hi barry -- In a message dated 4/3/2009 6:08:37 PM Eastern Standard Time, [email protected] writes:
> To that end, I want to add a routine to take any string and display it > as hex numbers. > The string can be anywhere from 0 (zero) to over 1,000 characters and > can contain any byte value from 00 to ff. the unpack() function is your friend in this situation, and specifically the 'C*' unpack template specifier. after you have unpack()-ed the string to an array (and an array of 1000 bytes is not terribly big), it is just a matter of printing the array in the format you find most helpful. > I want to do this without adding the overhead of printf or sprintf to > my program. i am not sure what you mean by this. the printf() and sprintf() functions are part of the perl dll and cannot be removed without re-compilation, which i assume you have not done since a lot of stuff would break if you did. can you be more specific on this point? br -- bill walters <BR><BR>**************<BR>Hurry! April 15th is almost here. File your Federal taxes FREE with TaxACT. (http://pr.atwola.com/promoclk/100126575x1220714320x1201367638/aol?redir=http:%2F%2Fwww.taxact.com%2F08tax.asp%3Fsc%3D084102950001%26p%3D82)</HTML>
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
