Thanks for your reply Joseph,  I am reading perlref now.  If you can offer
some pointers on how to access the key value pairs of the reference object
%item.  I would appreciate it.


----- Original Message -----
From: "R. Joseph Newton" <[EMAIL PROTECTED]>
To: "William Martell" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 07, 2004 11:20 AM
Subject: Re: Fixed Length Text Extract, Write to Excel


> William Martell wrote:
>
> > Hello All,
> >
> > I am trying to work with the code I have to extract fields from a text
file report, and write the values into excel.
> >
> > I am having trouble.
> >
> > When I get to push @order_detail, %item
> > I understand that this is pushing an associative array onto a list.
(array
> > of hashes)
>
> That is the problem,  a list cannot contain a hash.  The keys and values
of the hash simply become flattened into list
> elements, and all the hashing magic is lost.
>
> perldoc perlref
>
> will explain how references can help resolve this problem..
>
> Joseph
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to