Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^6: Variable triggers global destruction hang

by ig (Vicar)
on Sep 12, 2009 at 07:25 UTC ( [id://794901]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Variable triggers global destruction hang
in thread Variable triggers global destruction hang

I'm confused. The two cases I see in the original post are:

open FH , "| cat " ; open STDOUT, ">&FH";

and

my $foo = qr(a); open FH , "| cat " ; open STDOUT, ">&FH";

FH is duplicated to STDOUT in both cases.

And, saintmike said:

Just verified: With an old perl-5.8 I get the different behavior with/without the variable, with perl-5.10 it hangs regardless.

I took this to mean that with 5.10 it hangs waiting for the sub-process to terminate.

Replies are listed 'Best First'.
Re^7: Variable triggers global destruction hang
by ikegami (Patriarch) on Sep 12, 2009 at 07:34 UTC

      My mistake - I didn't notice that the cases had changed.

      Sorry for the confusion.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-24 05:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found