in reply to Re^14: localizing lexical without messing with tie ?
in thread localizing lexical without messing with tie ?

The link supports my usage. A parameter is the slot that takes the value (i.e. the variable inside the function). Argument is a value passed to a function (i.e. the expression in the caller).

Sub::Parameters depends on non core modules for aliasing.

Core doesn't provide a ready made solution, so necessarily, the code must come from outside the core.

that's the nature of closures.

Completely false.

You're obviously trying to avoid solving your problem, so I'm off.

  • Comment on Re^15: localizing lexical without messing with tie ?

Replies are listed 'Best First'.
Re^16: localizing lexical without messing with tie ?
by LanX (Saint) on Sep 14, 2010 at 12:37 UTC
    Ikegami, please read the OP , non-CORE was part of my question.

    > You're obviously trying to avoid solving your problem, so I'm off.

    No, I'm trying to avoid to solve _your_ problem.

    I already thanked you and told you politely for 4 or 5 times that I already solved my problem, you are the one who is doggedly insisting to solve his perception of a XY-problem and snarls about bad coding style.

    No idea why I'm still polite enough to reply, it takes a lot of energy to quarrel with you till it's obvious that you are misinterpretating things.

    Cheers Rolf

      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.

      A reply falls below the community's threshold of quality. You may see it by logging in.