in reply to Re^3: Interpolation in a hash key
in thread Interpolation in a hash key

This doesn't work ptum, at least not for me
I'll just put it in a HERE doc for now until I figure it out.

Replies are listed 'Best First'.
Re^5: Interpolation in a hash key
by davorg (Chancellor) on Jun 14, 2006 at 08:42 UTC

    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>);
    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

      You're a diamond

      Thank you.