in reply to Attempt to free unreferenced scalar...
That may or may not solve your immediate problem, but it definitely solves A problem...open (LISTA, "find $folder -type f|") or die "Cannot find '$folder': $!";
And another thing, you are likely littering the process table with zombies. This may well be the cause of your loop crashing. You can either set a child handler, or you can start calling wait or waitpid to let your children exit. (If this guess is right then the error check should have noticed and pointed you in the right direction.)
UPDATE
I think I am wrong about the zombie guess. As mentioned below I suspect either memory corruption or a Perl bug.
Using backticks to collect output may fix the program, but the bug should still be tracked down and reported.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tilly) 1: Attempt to free unreferenced scalar...
by Daniellek (Sexton) on Nov 29, 2000 at 18:28 UTC | |
by tilly (Archbishop) on Nov 29, 2000 at 19:01 UTC | |
by Daniellek (Sexton) on Nov 30, 2000 at 17:07 UTC |