http://qs321.pair.com?node_id=794885

saintmike has asked for the wisdom of the Perl Monks concerning the following question:

The following code snippet terminates ok:

open FH , "| cat " ; open STDOUT, ">&FH";
but if you add a variable holding a regular expression, like

my $foo = qr(a); open FH , "| cat " ; open STDOUT, ">&FH";
then this code hangs, according to strace while waiting for the forked process to terminate:

... rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0 waitpid(29096, ...
Is this a known perl bug?