Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
There could be any number of these constructs, and they could have any name (A & B are just examples) but they all conform to the same format: get + <name> + Struct. Can anyone suggest a way I could somehow loop through these functions so I could access the hash tables. Thanks, Michael$ACodes = {...}; #hash table ref sub getAStruct { return $ACodes; } $BCodes = {...}; #hash table ref sub getBStruct { return $BCodes; } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Grabbing unknown functions from modules
by Abigail-II (Bishop) on Sep 29, 2003 at 15:29 UTC | |
by Anonymous Monk on Sep 29, 2003 at 16:05 UTC | |
|
Re: Grabbing unknown functions from modules
by dragonchild (Archbishop) on Sep 29, 2003 at 15:40 UTC | |
|
Re: Grabbing unknown functions from modules
by broquaint (Abbot) on Sep 29, 2003 at 15:28 UTC |