Unfortunately this has the hallmarks (as happens here time to time) of someone who's in over their head and is trying to muddle through getting random people on the internet to do the work they've represented themselves as being capable of doing. As has played out they were able to get the first thing "working" now they're hitting another block because they don't know the basics and aren't able to apply what they don't know (i.e. the persistent syntax errors with multiple braces or no braces edit and not understanding variable scoping /edit; not knowing how to delimit variable names in interpolation or thinking there's multiple levels of interpolation as in the last "attempt" above; edit and again, not bothering to try the FAQ they're pointed at (cue the music) /edit).

The best thing would be for the OP to go back to their manager / supervisor / whomever and own up and explain they're in over their head, they're not the person to make these changes, and to be that person they need more training / to read more / to take time to actually learn how to program.

Edit: Personally, I'm at the last phase mentioned here WRT "You can't just make s<tuff> up . . .", and I'll just be kibitzing tangentially like with the concatenation vs interpolation deparse rather than trying to inculcate porcine singing.

The cake is a lie.
The cake is a lie.
The cake is a lie.


In reply to Re^2: appending a variable by Fletch
in thread appending a variable by pragovnj

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.