Subject: | Enhancement for IPC::Run3 |
Date: | Wed, 26 May 2010 08:55:19 +0200 |
To: | bug-IPC-Run3 [...] rt.cpan.org |
From: | Richard Schwaninger <richard.schwaninger [...] vmilch.at> |
Hi,
Using IPC::Run3 when a __DIE__-Handler is installed does not work correctly.
Please modify the _type function:
sub _type {
my ( $redir ) = @_;
use Data::Dumper;
return "FH" if eval {
# risc, 2010/05/26
local $SIG{'__DIE__'};
$redir->isa("IO::Handle")
};
my $type = ref $redir;
return $type eq "GLOB" ? "FH" : $type;
}
Perl: 5.10.0
IPC::Run3: 0.043
Thanks for your help.
-risc
--
Richard Schwaninger
EDV-Leiter
Vorarlberg Milch eGen
Nofler Straße 62, A-6800 Feldkirch
T +43/5522/72130-30
M +43/664/4669313
F +43/5572/72130-44
Firmenbuch: 61476g HG Feldkirch
richard.schwaninger@vmilch.at
www.vmilch.at