Skip to content

Commit

Permalink
Synched with MakeMaker's more advanced TieOut.
Browse files Browse the repository at this point in the history
  • Loading branch information
schwern committed Oct 15, 2002
1 parent ba16f19 commit 342cd99
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions t/lib/TieOut.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ sub PRINT {
$$self .= join('', @_);
}

sub PRINTF {
my $self = shift;
my $fmt = shift;
$$self .= sprintf $fmt, @_;
}

sub read {
my $self = shift;
my $out = $$self;
my $data = $$self;
$$self = '';
return $out;
return $data;
}

1;

0 comments on commit 342cd99

Please sign in to comment.