|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Using variables in array namesby polypompholyx (Hermit) |
| on Aug 05, 2005 at 12:18 UTC ( #481218=note: print w/ replies, xml ) | Need Help?? |
|
Yes, but you probably don't want to do it:
Or (your specific request):
For several security and bug-hunting reasons, this is a very bad idea. What you probably want is a hash instead...
You can then access your data by the name chosen in $point1 without worrying about creating global variables all over the place. Have a look at perlref.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||