Re: Fixed Length Text Extract, Write to Excel
From: William Martell (willmartell_at_yahoo.com)
Date: 01/07/04
- Next message: Rob Dixon: "Re: Fixed Length Text Extract, Write to Excel"
- Previous message: R. Joseph Newton: "Re: Fixed Length Text Extract, Write to Excel"
- In reply to: R. Joseph Newton: "Re: Fixed Length Text Extract, Write to Excel"
- Next in thread: Rob Dixon: "Re: Fixed Length Text Extract, Write to Excel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "R. Joseph Newton" <rjnewton@efn.org>, <beginning_perl@yahoogroups.com>, <beginners@perl.org> Date: Wed, 7 Jan 2004 11:46:03 -0600
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" <rjnewton@efn.org>
To: "William Martell" <willmartell@yahoo.com>
Cc: <beginning_perl@yahoogroups.com>; <beginners@perl.org>
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: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
- Next message: Rob Dixon: "Re: Fixed Length Text Extract, Write to Excel"
- Previous message: R. Joseph Newton: "Re: Fixed Length Text Extract, Write to Excel"
- In reply to: R. Joseph Newton: "Re: Fixed Length Text Extract, Write to Excel"
- Next in thread: Rob Dixon: "Re: Fixed Length Text Extract, Write to Excel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|