Title: RE: Octetstr to hex conversion

Is this what you mean?

my $hex = unpack("h*",pack("b*",$octetstr));


-----Original Message-----
From: Jim Lancaster [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 28, 2003 11:30 AM
To: [EMAIL PROTECTED]
Subject: Octetstr to hex conversion


I'm polling a Linux server with Net-SNMP and getting back an octetstr
value for the mac address of the nic.  I saw a reference to using unpack
to convert it in an old posting, but no specifics.  How is this done?
What kind of mask do I use?


Jim Lancaster
MBD Network Services, LLC

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to