Depends where you declare it.
my $keeps_value; sub func { my $loses_value; state $also_keeps_value; # Perl 5.10 ... }
In reply to Re: my variables in a subroutine
by ikegami
in thread my variables in a subroutine
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |