in reply to Re: Complex Data Structures
in thread Complex Data Structures
Then this should do:my %curr_struct_pos;
On the other hand if it is a reference to a hash that you have there then this should do:for my $type (keys %curr_struct_pos) { for my $index (0..@{$cur_struct_pos{$type}}-1) { $path="Global".$type. "Def:".$curr_struct_pos{$type}->[$a]. ".def"; $curr_struct_pos{$type}->[$a] = extract(); }
As for extract() I believe you can work that one out for yourself from my other post.for my $type (keys %$curr_struct_pos) { for my $index (0..@{$cur_struct_pos->{$type}}-1) { $path="Global".$type. "Def:".$curr_struct_pos->{$type}[$a]. ".def"; $curr_struct_pos->{$type}[$a] = extract(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Complex Data Structures
by immybaby (Initiate) on Aug 31, 2001 at 14:32 UTC | |
by demerphq (Chancellor) on Aug 31, 2001 at 20:15 UTC |