in reply to Re^2: Interpolation in a hash key
in thread Interpolation in a hash key
So, in this last case, you've got a double-quoted string with a single-quoted substring. Interpolation rules indicate that a variable name inside the overall double-quoted string will still be resolved, so this should work (although it makes me nervous with all those backslashed double-quote characters):
print "<td width=\"78\" align=\"center\" valign=\"middle\">$$hashRecor +dPtr{'part_number${count}'}</td>";
Of course, I could be wrong -- you should try it out. :) When in doubt, I use the curly braces, because I think it makes it more readable and it has saved my bacon once or twice.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Interpolation in a hash key
by pickledegg (Novice) on Jun 14, 2006 at 08:07 UTC | |
by davorg (Chancellor) on Jun 14, 2006 at 08:42 UTC | |
by pickledegg (Novice) on Jun 14, 2006 at 15:10 UTC |