On Tue, Sep 10, 2002 at 10:33:34AM -0400, Chad Kellerman wrote: > Hello, > I have a subroutine that declares a variable from standard out. If I > just undef that variable will that free up the memory that it used? Or > is there another command that frees up memory?
That depends on what exactly you mean. When a variable is no longer used Perl will reuse the memory for other purposes. The memory is unlikely to be available for other processes because a) Your OS probably doesn't support that and b) perl probably still has pointers to the memory. To avoid most memory problems: - Use lexical variables - Don't slurp entire files - Buy more memory -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]