http://qs1969.pair.com?node_id=86856


in reply to mod_perl and lazy zombies

Would calling local on the filehandle do any good?

Like so:

local (*RPC); open(RPC,"/bin/rpcinfo -p foo|") or die ... while(<RPC>) { # do something with the output }

Replies are listed 'Best First'.
Re: Re: mod_perl and lazy zombies
by Odud (Pilgrim) on Jun 08, 2001 at 12:17 UTC
    No - I tried it and the zombies appear. Even though it is now local because I'm running under mod_perl the local variable stays in existance because there has been no exit from the enclosing block.
    Pete
      so :
      { local(*RPC); #... }
      should be ok ? Perhaps it's the same than using IO::File. Anyway, I prefer the second solution : IO::File :)