in reply to retrieve list values...
Next is to turn each record hashref into an array of items in the order (ID, TEXT, VALUE). You can use a hash slice to do this.for my $rec_hr ( @$VAR1 ) { ... }
From there, you can do whatever you want. You could, for example, push these array-type records onto a new array, or print them:for my $rec_hr ( @$VAR1 ) { my @rec = @{$rec_hr}{'ID','TEXT','VALUE'}; }
for my $rec_hr ( @$VAR1 ) { my @rec = @{$rec_hr}{'ID','TEXT','VALUE'}; push @array_records, \@rec; print "(@rec)\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: retrieve list values...
by danidin (Novice) on Jul 18, 2005 at 13:58 UTC | |
by jdporter (Paladin) on Jul 18, 2005 at 14:14 UTC |