Cross Reference: TieIn.pm
xref
: /
osnet-11
/
usr
/
src
/
cmd
/
perl
/
5.8.4
/
distrib
/
t
/
lib
/
TieIn.pm
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
package
TieIn
;
sub
TIEHANDLE
{
bless
( \(
my
$
scalar
), $_[
0
]);
}
sub
write
{
my
$
self
=
shift
;
$$
self
.=
join
''
, @_;
}
sub
READLINE
{
my
$
self
=
shift
;
$$
self
=~ s/^(.*\n?)//;
return
$
1
;
}
sub
EOF
{
my
$
self
=
shift
;
return
!
length
$$
self
;
}
1
;