Because you referenced it outised of the function by assigning it on
return. It's reference count is not 0, so it's not elligible for
garbage collection.
Balint, Jess wrote:
>Hi all. As I have known before, "my" declares a variable that is local to a
>function. My question, why don't I get an undefined in the following code
>example? Shouldn't my @wq be erased after the function exits? Thanks.
>Jess
>
>sub jess{ my @wq = ( 1, 2, 3, 4 ); \@wq; }
>
>$r = &jess;
>
>print $r->[0];
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]