in reply to Interpolation in a hash key
So, every place you have a '1' in a hash key, simply substitute this (untested):
${count}
For example:
print<<"CONNECTION1"; <td valign="middle" align="center" width="78">$$hashRecordPtr{'connect +ion1_size1'} </td> CONNECTION1
... becomes ...
print<<"CONNECTION1"; <td valign="middle" align="center" width="78">$$hashRecordPtr{'connect +ion${count}_size${count}'} </td> CONNECTION1
That should do it, no? At a glance, it looks like all your $$hashRecordPtr references are inside double-quoted strings or HERE docs ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Interpolation in a hash key
by pickledegg (Novice) on Jun 13, 2006 at 16:26 UTC | |
by ptum (Priest) on Jun 13, 2006 at 16:34 UTC | |
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 |