Its a good idea to avoid globals (esp fake globals), pass arguments instead
doWork( $coverage, $t );
This might have an effect on memory (or might not), but its a good idea for code maintenance :)
OTOH, perl can give memory back to the OS, it does so frequently on win32, see Re^2: Memory Leak when slurping files in a loop/demonstrate that perl can give back memory to the OS
In reply to Re: Unexplained memory hogging
by Anonymous Monk
in thread Unexplained memory hogging
by richardwfrancis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |