Path : /proc/2/cwd/proc/3/cwd/usr/share/doc/perl-Test-Simple-0.98/t/lib/ |
Current File : //proc/2/cwd/proc/3/cwd/usr/share/doc/perl-Test-Simple-0.98/t/lib/TieOut.pm |
package TieOut; use strict; sub TIEHANDLE { my $scalar = ''; bless( \$scalar, $_[0] ); } sub PRINT { my $self = shift; $$self .= join( '', @_ ); } sub PRINTF { my $self = shift; my $fmt = shift; $$self .= sprintf $fmt, @_; } sub FILENO { } sub read { my $self = shift; my $data = $$self; $$self = ''; return $data; } 1;