Irinotecan has asked for the wisdom of the Perl Monks concerning the following question:
I guess what my real question is, does undef just force garbage collection, or does it actually un-declare the my definition, so that something later like @array=(...); creates a global? Thanks for any insight.my @array = (a, large, array, etc....); ... #Later, should I do: undef @array; #or @array = (); #And, if I want to re-use the variable even later, if I use undef, do +I: my @array = (a, new, array);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Garbage Collection and undef
by davido (Cardinal) on Oct 17, 2004 at 04:11 UTC | |
Re: Garbage Collection and undef
by ikegami (Patriarch) on Oct 17, 2004 at 06:24 UTC | |
by eyepopslikeamosquito (Archbishop) on Oct 17, 2004 at 08:19 UTC | |
by tilly (Archbishop) on Oct 17, 2004 at 06:59 UTC | |
Re: Garbage Collection and undef
by osunderdog (Deacon) on Oct 17, 2004 at 03:34 UTC | |
by duff (Parson) on Oct 17, 2004 at 04:21 UTC | |
Re: Garbage Collection and undef
by pg (Canon) on Oct 17, 2004 at 04:12 UTC | |
by tilly (Archbishop) on Oct 17, 2004 at 04:19 UTC | |
by pg (Canon) on Oct 17, 2004 at 04:49 UTC | |
by tilly (Archbishop) on Oct 17, 2004 at 05:08 UTC | |
by ihb (Deacon) on Oct 17, 2004 at 05:54 UTC | |
| |
by hv (Prior) on Oct 17, 2004 at 10:50 UTC |