How can i convert a string numerical value into other formats such as hex or decimal?
For Example:
$string = "000B"
I want this to be translate to a numerical value:
$hex = 000B
$decimal = 11
You response will be appreciated. Thanks.
I am using following code to read a value out of a binary file and convert it to hex, read another value from an excel file. The two values are different but when I compare these values in perl the result is a match which does not make sense.
I have attached a link to download the excel...
I found the following code to read an existing excel file:
use Win32::OLE qw(in with);
use Win32::OLE::Const 'Microsoft Excel';
$Win32::OLE::Warn = 3; # die on errors...
my $Excel = Win32::OLE->GetActiveObject('Excel.Application')
|| Win32::OLE->new('Excel.Application'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.