Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: mod_perl and lazy zombies

by dirthurts (Hermit)
on Jun 08, 2001 at 11:21 UTC ( #86856=note: print w/replies, xml ) Need Help??


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 :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://86856]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2023-03-27 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (65 votes). Check out past polls.

    Notices?