in reply to Re^4: Interpolation in a hash key
in thread Interpolation in a hash key
Make life easy for yourself. Use qq() instead of your outer double quotes.
my $hashRecordPtr = { part_number1 => 1 }; my $count = 1; print qq(<td width="78" align="center" valign="middle">$$hashRecordPtr +{"part_number${count}"}</td>);
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Interpolation in a hash key
by pickledegg (Novice) on Jun 14, 2006 at 15:10 UTC |