nysus has asked for the wisdom of the Perl Monks concerning the following question:
Why the heck doesn't the program die? The error prints but the program plows on and prints 'hello', sleeps, and the prints 'goodbye'. Thanks again, again, and again.#!/usr/bin/perl use strict; open (PIPE,"| perl non-existant_file") or die "Can't open pipe: $!"; print "hello"; sleep 5; print "goodbye";
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop";
$nysus = $PM . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: More pipe problems
by arturo (Vicar) on Jul 18, 2001 at 22:55 UTC | |
by nysus (Parson) on Jul 18, 2001 at 23:01 UTC | |
|
Re: More pipe problems
by Cubes (Pilgrim) on Jul 18, 2001 at 22:49 UTC | |
|
Re: More pipe problems
by spudzeppelin (Pilgrim) on Jul 19, 2001 at 00:00 UTC | |
|
Re: More pipe problems
by rucker (Scribe) on Jul 18, 2001 at 22:46 UTC | |
|
Re: More pipe problems
by petral (Curate) on Jul 19, 2001 at 08:13 UTC |