Message-ID: <
20050318180551.GA12596@solemn.turbinal.org>
p4raw-id: //depot/perl@24064
package SelectSaver;
-our $VERSION = '1.00';
+our $VERSION = '1.01';
=head1 NAME
sub new {
@_ >= 1 && @_ <= 2 or croak 'usage: new SelectSaver [FILEHANDLE]';
my $fh = select;
- my $self = bless [$fh], $_[0];
+ my $self = bless \$fh, $_[0];
select qualify($_[1], caller) if @_ > 1;
$self;
}
sub DESTROY {
- my $this = $_[0];
- select $$this[0];
+ my $self = $_[0];
+ select $$self;
}
1;