P is for Practical | |
PerlMonks |
Re: another 'array to hash' questionby caedes (Pilgrim) |
on Dec 10, 2003 at 14:31 UTC ( [id://313721]=note: print w/replies, xml ) | Need Help?? |
I'm pretty sure that what you're describing is both nearly impossible and something you wouldn't really want to do if you could. In the context of the rest of your code there is probably a much better way of solving the problem, but we can only guess what that is since you havn't provided much other code.
Update: Now that I think about it, accessing the variable names as you descibe is really no different than hard coding the names in an array or just specifying the hash dirrectly. In all cases your still hard coding something, so the results will be the same. -caedes
In Section
Seekers of Perl Wisdom
|
|