[Omaha.pm] Processing a CSV file.
Dan Linder
dan at linder.org
Tue Oct 29 16:49:18 PDT 2013
Thanks for the code option. As with everything Perl, there are multiple
ways to solve the problem.
Dan
On Oct 28, 2013 7:13 PM, "Jay Hannah" <jay at jays.net> wrote:
> On Oct 28, 2013, at 2:39 PM, Dan Linder <dan at linder.org> wrote:
> > Is there a cleaner way of getting the @headers2 and @values2 array and
> then walking through both of them in the for loop?
>
> hmmm... this is one of those cases where I'd probably stick with a C-style
> for loop. :)
>
> > I thought I could set the header once (using column_names() ?) and then
> pull in the values line and do a foreach on the headers, but I couldn't get
> that to work.
> >
> > Thoughts or examples?
>
> Does this help?
>
> https://github.com/jhannah/sandbox/blob/master/danlinder/go.pl
>
> Cheers,
>
> j
>
>
>
>
> _______________________________________________
> Omaha-pm mailing list
> Omaha-pm at pm.org
> http://mail.pm.org/mailman/listinfo/omaha-pm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20131029/c5f8535a/attachment.html>
More information about the Omaha-pm
mailing list