I already thanked you and told you politely for 4 or 5 times that I already solved my problem

No matter how many time you say it doesn't make it true. Throwing a bucket of paint at the wall doesn't paint the wall. The following doesn't sum an array,

$sum = 0; $sum += $array[0] if @array > 0; $sum += $array[1] if @array > 1; $sum += $array[2] if @array > 2; $sum += $array[3] if @array > 3;

and your code doesn't solve your problem (named parameters). You must declare every variable every time you call the sub. Your sub cannot be placed in a module. It's convoluted to the point of making it impossible to chain sub calls (the foundation of functional programming).

Ikegami, please read the OP , non-CORE was part of my question.

This has been covered as well, so whose not reading? The solution doesn't exist in core. Any solution written by me, you or someone else isn't in core. If you need help converting PM posts and .pm files in .pl files, there are people here that can help you.


In reply to Re^17: localizing lexical without messing with tie ? by ikegami
in thread localizing lexical without messing with tie ? by LanX

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.