RE: Pack syntax

2003-01-21 Thread wiggins
On Tue, 21 Jan 2003 15:59:12 -0500, "Paul Kraus" <[EMAIL PROTECTED]> wrote: > Thanks! > > I like to make more work for myself. In that case you could always just create your hash/array data structure and then use Storable and Freezethaw :-)

RE: Pack syntax

2003-01-21 Thread Paul Kraus
rl' Subject: RE: Pack syntax Paul Kraus wrote: > I have two text files that are exported from our shipping computers > each night. > > One is FedEx and contains a space delimitated file with two fields. > OrderNumber TrackingNumber > > The other is UPS and contains a

RE: Pack syntax

2003-01-21 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Paul Kraus wrote: > I have two text files that are exported from our shipping computers > each night. > > One is FedEx and contains a space delimitated file with two fields. > OrderNumber TrackingNumber > > The other is UPS and contains a CSV file with two fields. > "OrderNumber","TrackingNumber"

RE: Pack syntax

2003-01-21 Thread Paul Kraus
er, David --- Senior Programmer Analyst --- WGO [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 3:37 PM To: '[EMAIL PROTECTED]'; Wagner, David --- Senior Programmer Analyst --- WGO; 'Perl' Subject: RE: Pack syntax Paul Kraus wrote: > You are of course correct. After s

RE: Pack syntax

2003-01-21 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Paul Kraus wrote: > You are of course correct. After some digging I seems that the problem > was in my unpack statement. When I actually checked the packed > variable all the data was there. > > I was doing .. My ($a,$b) = unpack("A A",$buffer); > When I added ... Unpack "A* A*" > It sort of w

RE: Pack syntax

2003-01-21 Thread Paul Kraus
a correctly into separate variables. If so then that really makes this useless to me :( So all pack and unpack are is wrapped up '.' and substr. -Original Message- From: Wagner, David --- Senior Programmer Analyst --- WGO [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 2

RE: Pack syntax

2003-01-21 Thread Wagner, David --- Senior Programmer Analyst --- WGO
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.

Pack syntax

2003-01-21 Thread Paul Kraus
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 rece