Subject: | Please Use Scalar::Util instead of WeakRef |
Scalar::Util contains exactly the same routines as WeakRef.
Scalar::Util comes with perl-5.8.x, and it is available on CPAN for perl-5.6.x.
WeakRef seems to be obsolete.
--
Alexey Tourbin
ALT Linux Team
--- FileHandle-Unget-0.14/lib/FileHandle/Unget.pm- 2004-02-09 00:29:50 +0300
+++ FileHandle-Unget-0.14/lib/FileHandle/Unget.pm 2004-05-21 06:45:43 +0400
@@ -80,7 +80,7 @@
#-------------------------------------------------------------------------------
-use WeakRef;
+use Scalar::Util qw(weaken);
sub new
{
--- FileHandle-Unget-0.14/Makefile.PL- 2004-02-08 23:00:47 +0300
+++ FileHandle-Unget-0.14/Makefile.PL 2004-05-21 06:47:26 +0400
@@ -91,7 +91,7 @@
'PM' => {
'lib/FileHandle/Unget.pm' => '$(INST_LIB)/FileHandle/Unget.pm',
},
- 'PREREQ_PM' => { WeakRef => 0, },
+ 'PREREQ_PM' => { 'Scalar::Util' => 1, },
'DIR' => [ ],
);
--- FileHandle-Unget-0.14/META.yml- 2004-02-09 10:37:15 +0300
+++ FileHandle-Unget-0.14/META.yml 2004-05-21 06:48:01 +0400
@@ -5,7 +5,7 @@
version_from: lib/FileHandle/Unget.pm
installdirs: site
requires:
- WeakRef: 0
+ Scalar::Util: 1
distribution_type: module
generated_by: ExtUtils::MakeMaker version 6.16