peterc has asked for the wisdom of the Perl Monks concerning the following question:
The problem that I have is that I would also like to modify the hash and replace it back inside the original array but I cant find any documentation about the $line->get($attribute) section. Can anyone tell me how to do the reverse of this?my @attributes = $line->attributes; for my $attribute (@attributes) { my $values = $line->get($attribute); for my $v (@{$values}) { push (@result_array, $v); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting and replacing an item of a Hash
by Joost (Canon) on Aug 11, 2004 at 10:11 UTC | |
|
Re: Getting and replacing an item of a Hash
by Limbic~Region (Chancellor) on Aug 11, 2004 at 12:48 UTC | |
by peterc (Initiate) on Aug 11, 2004 at 14:34 UTC |