in reply to Re: which data structure and how?
in thread which data structure and how?
$value = "GPY"; $lfilename = "products.pdg"; open(FILE, "$lfilename") or &dienice; while(<FILE>) { @row = split(/\;/); if ($row eq $value){ %data; @data{@fields} = @row; push @records, \%data; } } close (FILE); foreach my $ref ( @records ) { print $ref->{Begin}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: which data structure and how?
by chromatic (Archbishop) on Mar 31, 2001 at 06:31 UTC | |
by malaga (Pilgrim) on Mar 31, 2001 at 06:54 UTC | |
by tilly (Archbishop) on Mar 31, 2001 at 09:45 UTC |