I have a number of files which I have transferred from another
system. I am trying to read the data, but running into a problem when I hit
what is a negative number (Each field is 4 characters in length).

        Here is the unpack:

                @MyWorka = unpack("a8Nsa6a10ssa52H8a4H8H8a136",$fb010dbuf);

This is the closest I have been able to get the info.  If the value is
positive, number is okay, but if negative, then just a huge number.  If you
look at rcd#3 Bill, you will see what I mean. If i I enter that value and
use printf and hex ( another script ), I get the negative number I expect.

What am I missing?

Thanks.

Wags ;)
========================================
Data:
        
rcd#:2
Orig: 0/00000000
filr: 000031bf
Dest: 0/00000000
Bill: 12735/000031bf
MyKey: 43693706
*******
rcd#:3
Orig: 0/00000000
filr: ffffce41
Dest: 0/00000000
Bill: 4294954561/ffffce41
MyKey: 43693706
*******
rcd#:4
Orig: 0/00000000
filr: 0000380f
Dest: 0/00000000
Bill: 14351/0000380f
MyKey: 43693706



**********************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
****************************************************************


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to