X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FTie%2FHandle.pm;h=d8747f12af1db43d8e2f6e98fd118ae9c0604c94;hb=46471bde41ad0777edf7b89818df6730e8b55c20;hp=86adad20986c73ab82ddc3b1e3623f7bd99f5de6;hpb=052b629eb0274721d73944a03d3c4aac89392a61;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Tie/Handle.pm b/lib/Tie/Handle.pm index 86adad2..d8747f1 100644 --- a/lib/Tie/Handle.pm +++ b/lib/Tie/Handle.pm @@ -1,7 +1,7 @@ package Tie::Handle; -use 5.005_64; -our $VERSION = '1.0'; +use 5.006_001; +our $VERSION = '4.1'; =head1 NAME @@ -12,7 +12,7 @@ Tie::Handle, Tie::StdHandle - base class definitions for tied handles package NewHandle; require Tie::Handle; - @ISA = (Tie::Handle); + @ISA = qw(Tie::Handle); sub READ { ... } # Provide a needed method sub TIEHANDLE { ... } # Overrides inherited method @@ -33,7 +33,7 @@ For developers wishing to write their own tied-handle classes, the methods are summarized below. The L section not only documents these, but has sample code as well: -=over +=over 4 =item TIEHANDLE classname, LIST @@ -105,6 +105,15 @@ destruction of an instance. The L section contains an example of tying handles. +=head1 COMPATIBILITY + +This version of Tie::Handle is neither related to nor compatible with +the Tie::Handle (3.0) module available on CPAN. It was due to an +accident that two modules with the same name appeared. The namespace +clash has been cleared in favor of this module that comes with the +perl core in September 2000 and accordingly the version number has +been bumped up to 4.0. + =cut use Carp; @@ -192,7 +201,7 @@ use Carp; sub TIEHANDLE { my $class = shift; - my $fh = do { \local *HANDLE}; + my $fh = \do { local *HANDLE}; bless $fh,$class; $fh->OPEN(@_) if (@_); return $fh;