Subject: | IPC::Run::IO constructor doesn't check correctly for its argument being a GLOB |
The attached patch should fix this problem. I don't think there's much
more to say about it, unless I'm completely wrong about what the method
in question is supposed to do.
Distribution: IPC-Run-0.80
Perl: This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
OS: Linux nevermore 2.6.24-1-486 #1 Fri Apr 18 23:53:06 UTC 2008 i686
GNU/Linux
Subject: | ipc_run_io.patch |
--- IPC/Run/IO.pm 2006-05-10 12:34:46.000000000 -0700
+++ IPC/Run/IO.pm.fixed 2008-07-13 19:50:21.000000000 -0700
@@ -108,7 +108,7 @@
if ( ! ref $external ) {
$self->{FILENAME} = $external ;
}
- elsif ( ref eq 'GLOB' || isa( $external, 'IO::Handle' ) ) {
+ elsif ( ref $external eq 'GLOB' || isa( $external, 'IO::Handle' ) ) {
$self->{HANDLE} = $external ;
$self->{DONT_CLOSE} = 1 ;
}