You still haven't understood, or are ignoring, the plethora of advice you were given in To read files from two dir that amounts to:

We aren't interested in distracting problem domain specific identifiers and other cruft that is not related to the issue at hand. Write some code that demonstrates the problem so it is trivial for us to see it too, and so that you can easily play around with the code to see what works and what breaks. With Perl it is trivial to write a little test script and it is a really good way to explore an issue without having all the baggage of the original script you are trying to fix. This is really useful even if you have no intention of asking anyone else for help. It is vital when you do intend to ask for help so that you don't waste our time and you don't waste your own time.

Remember: being truly lazy is getting the job done with the least overall effort. Often that means more effort up front to save a lot of effort later.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

In reply to Re: appending a variable by GrandFather
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.