summaryrefslogtreecommitdiff
path: root/lib/Tie
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-11-16 23:05:35 +0000
committerNicholas Clark <nick@ccl4.org>2008-11-16 23:05:35 +0000
commitd10ced8a0718a50590450dfb6f8db4eb7511a2e4 (patch)
treede927314cff3a23d7d925362773b0519c3ac8ac7 /lib/Tie
parenta44e3ce226529598e55244bb1f9f6372951c51d6 (diff)
downloadperl-d10ced8a0718a50590450dfb6f8db4eb7511a2e4.tar.gz
Add a $VERSION, strict and some documentation to Tie::StdHandle.
p4raw-id: //depot/perl@34859
Diffstat (limited to 'lib/Tie')
-rw-r--r--lib/Tie/StdHandle.pm35
1 files changed, 33 insertions, 2 deletions
diff --git a/lib/Tie/StdHandle.pm b/lib/Tie/StdHandle.pm
index 93db289432..3a1a3db478 100644
--- a/lib/Tie/StdHandle.pm
+++ b/lib/Tie/StdHandle.pm
@@ -1,8 +1,39 @@
package Tie::StdHandle;
+use strict;
+
use Tie::Handle;
-our @ISA = 'Tie::Handle';
-use Carp;
+use vars qw(@ISA $VERSION);
+@ISA = 'Tie::Handle';
+$VERSION = '4.2';
+
+=head1 NAME
+
+Tie::StdHandle - base class definitions for tied handles
+
+=head1 SYNOPSIS
+
+ package NewHandle;
+ require Tie::Handle;
+
+ @ISA = qw(Tie::Handle);
+
+ sub READ { ... } # Provide a needed method
+ sub TIEHANDLE { ... } # Overrides inherited method
+
+
+ package main;
+
+ tie *FH, 'NewHandle';
+
+=head1 DESCRIPTION
+
+The B<Tie::StdHandle> package provide most methods for file handles described
+in L<perltie> (the exceptions are C<UNTIE> and C<DESTROY>). It causes tied
+file handles to behave exactly like standard file handles and allow for
+selective overwriting of methods.
+
+=cut
sub TIEHANDLE
{