Apr 29, 2005, 5:25 AM
Post #4 of 4
What you are looking for is a feature known as "symbolic references". Perl supports this feature but as it is a very dangerous thing to do it is explicity disabled when you have "use strict" turned on (and you should _always_ have "use strict" turned on).
There is always a better way to do whatever it is you think you need smbolic references for. This probably involves using a hash, "real" references or more complex data structures.
Please don't do this. It will make your programs fragile, insecure and hard to maintain.
Dave Cross, Perl Hacker, Trainer and Writer
Get more help at Perl Monks