Syntactic Confectionery Delight | |
PerlMonks |
Re: mod_perl and lazy zombiesby no_slogan (Deacon) |
on Jun 07, 2001 at 18:48 UTC ( [id://86571]=note: print w/replies, xml ) | Need Help?? |
Yes, that's the correct behavior for mod_perl. The RPC
filehandle is a global, and global variables are persistant.
Sometimes, you might want your files to stay open (e.g.
persistant database connections). Other times, it's a good
idea to use localized filehandles with a gensym or some
other trick, so they don't get left open.
In Section
Seekers of Perl Wisdom
|
|