I am creating a simple database that needs to contain 3 fields.
Date, order number, tracking number.

I figured I would use a dbmhash and use pack to get the data in.
So my hash would be %hash{tracking_number}=$packeddata.

The date and order number are both strings.
So using the information I received from perldoc -f pack.
I determined that I need to use the format 'A'.
        $stuffed = pack("A A", $date, $order);

All this does is steal the first character of each string.

So reading more I find that I need a quantifier so I tried *
        $stuffed = pack("A* A*", $date, $order);
This stole the 1st char of $date and the second char of $order.

Any ideas?

Paul


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

Reply via email to