Your line
my $start = ...
creates another binding for the name $start in the current scope. Use:
$start = ...
instead. Also see Coping with Scoping.
In reply to Re^3: Recover a variable from a function
by Corion
in thread Recover a variable from a function
by Chaoui05
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |