Permalink
Browse files

Need to require unconditionally

  • Loading branch information...
Stefan O'Rear
Stefan O'Rear committed Jun 14, 2009
1 parent 8ee025a commit 63323c657b9cccf094194e2470eaf47e8fa7211a
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/IO/Pty/HalfDuplex.pm
View
@@ -125,10 +125,10 @@ sub new {
if (! defined $args{backend}) {
$args{backend} = ($_default_backend ||= _probe_backends());
- } else {
- eval "require IO::Pty::HalfDuplex::$args{backend}";
}
+ eval "require IO::Pty::HalfDuplex::$args{backend}";
+
("IO::Pty::HalfDuplex::" . $args{backend})->new(@_);
}

0 comments on commit 63323c6

Please sign in to comment.