in reply to About variable names
Your answer has been provided, but just a side note on implementation. Are you using the @keys array to help populate the %list_of_refs, or just as a way of keeping track what keys are within %list_of_refs? If you have the @keys array just so you can say for (@keys) {}, then take a look at keys(). Then you can do something along the lines of for (keys %list_of_refs) {} or my @keys = keys %list_of_refs; for (@keys) {}. This way, you won't have to keep a separate list; you can just generate it automatically whenever you need it :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: About variable names
by Anonymous Monk on Nov 20, 2003 at 15:17 UTC |