v3.17 release
[perl/plp/.git] / PLP / Tie / Print.pm
index 3d5027a187dc2a1835190d46da87d40530975550..8ec4e4a389fd30c8636366ec1198364806fe4aca 100644 (file)
@@ -12,23 +12,21 @@ This module is part of the PLP Internals and probably not of much use to others.
 
 =cut
 
-sub TIEHANDLE {
-    return bless {}, $_[0];
-}
+sub TIEHANDLE { bless \my $dummy, $_[0] }
 
-sub WRITE { undef; }
+sub WRITE { undef }
 
 sub PRINT {
-    my ($self, @param) = @_;
-    return if @param == 1 and not length $param[0];
+    shift;
+    return if @_ == 1 and not length $_[0];
     PLP::sendheaders() unless $PLP::sentheaders;
-    print STDOUT @param;
+    print STDOUT @_;
     select STDOUT;
 }
 
 sub PRINTF {
-    my ($self, @param) = @_;
-    printf STDOUT @param;
+    shift;
+    printf STDOUT @_;
     select STDOUT;
 }
 
@@ -42,5 +40,7 @@ sub CLOSE { undef }
 
 sub UNTIE { undef }
 
+sub DESTROY { undef }
+
 1;