From 29536ca2109821ba3d3cda013c5cb8b67c196c0d Mon Sep 17 00:00:00 2001 From: doy Date: Tue, 3 Feb 2009 03:43:12 -0500 Subject: minor nitpicks --- lib/IO/Pty/Easy.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/IO/Pty/Easy.pm b/lib/IO/Pty/Easy.pm index ae0201a..9d2256a 100644 --- a/lib/IO/Pty/Easy.pm +++ b/lib/IO/Pty/Easy.pm @@ -300,10 +300,10 @@ Kills any subprocesses and closes the pty. No other operations are valid after t sub close { my $self = shift; - return unless defined $self->{pty}; + return unless $self->{pty}; $self->kill; close $self->{pty}; - $self->{pty} = undef; + delete $self->{pty}; } # }}} -- cgit v1.2.3-54-g00ecf