in reply to Re^3: Recover a variable from a function
in thread Recover a variable from a function

Oh yes i understand. Sometimes it's better to spend more time at the beginning.. In any case, we have different approachs in Perl
  • Comment on Re^4: Recover a variable from a function

Replies are listed 'Best First'.
Re^5: Recover a variable from a function
by haukex (Archbishop) on May 19, 2016 at 08:44 UTC

    Hi Chaoui05,

    Sure, and I'd say the best approach depends on various things, such as whether or not I'm confident that the script will stay short enough that using globals (which I've done plenty of times) is acceptable. I just thought I'd use this opportunity to illustrate an approach for more complex scripts.

    Regards,
    -- Hauke D

      I will try to have this in a corner of my head. Thanks !