in reply to Re: Interpolation in a hash key
in thread Interpolation in a hash key
I don't think $$hashvar{key} interpolates correctly as a dereferencer inside double quotes
Seems to work fine here. What happened when you tried it?
$ perl -le '$h = {one=>1}; print "$$h{one}"' 1
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Interpolation in a hash key
by pickledegg (Novice) on Jun 13, 2006 at 15:58 UTC | |
by davorg (Chancellor) on Jun 13, 2006 at 16:06 UTC | |
by ptum (Priest) on Jun 13, 2006 at 16:18 UTC |