Paul Kraus wrote: > 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
Why do you say that? I ran under w2k AS 5.6.0 build 623 and placed all in $stuffed. I printed it out and $stuffed had te data from both items as one long stream. Wags ;) ********************************************************** 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]