Post subject: Odd Perl Syntax Question
Player (36)
Joined: 9/11/2004
Posts: 2630
It concerns the dereferencing of hashes. The { }s in a hash don't seem to behave as regular block, as such I'm having trouble using variables inside of them. For instance: $CGI{$editn[$j]} doesn't do what I want. $CGI{${editn}[$j]} and $CGI{"$editn[$i]"} fail as well. Is there anything I can do about this, or is it just an odd quirk and I have to find a work around?
Build a man a fire, warm him for a day, Set a man on fire, warm him for the rest of his life.