immybaby has asked for the wisdom of the Perl Monks concerning the following question:
So basically I want to turn the string $$curr_pos{$type}$a into a hash of the same name as the string containing the values returned by extrct(). Thanks.for $type (keys %$curr_struct_pos) { for ($a=1;$$curr_struct_pos{$type}[$a];$a++) { $path = "Global${type}Def:$$curr_struct_pos{$type}[$a].def"; print $path,"\n"; $$curr_struct_pos{$type}[$a] = extrct(); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Complex Data Structures 2
by John M. Dlugosz (Monsignor) on Aug 30, 2001 at 20:18 UTC | |
by immybaby (Initiate) on Aug 30, 2001 at 20:37 UTC | |
by Hofmator (Curate) on Aug 30, 2001 at 20:53 UTC | |
by John M. Dlugosz (Monsignor) on Aug 30, 2001 at 20:44 UTC |