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

Your line

my $start = ...

creates another binding for the name $start in the current scope. Use:

$start = ...

instead. Also see Coping with Scoping.

Replies are listed 'Best First'.
Re^4: Recover a variable from a function
by Chaoui05 (Scribe) on May 19, 2016 at 09:12 UTC
    It works . Perfect . And the link is very useful. Many thanks , as usual Corion !