If the array has wider scope than the subroutine, then yes. Unrealistic sample follows:
my @array = (); my $counter =0; recurse(); sub recurse { push @array, $counter++; return if $counter > 25; recurse(); }
In reply to Re: Will recursive code update data in an array?
by arturo
in thread Will recursive code update data in an array?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |