in reply to Memory leak!

And what is this loop meant to do?

for (my $i=0; $i < $dirNum; $i++) { my $gftDirName = $ProdRec[$i]{'remoteDir'}; }

You assign a bunch of values from a global array of hashes to a loop-local lexical scalar, and then do nothing with any of them?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^2: Memory leak!
by joeymac (Acolyte) on Dec 12, 2011 at 19:31 UTC

    I took out the line from the full script where the directory names are printed to the a log file:

    print LOG "Retrieving data from remote dir: $gftDirName\n";