Skip Menu |

This queue is for tickets about the FileHandle-Unget CPAN distribution.

Report information
The Basics
Id: 6375
Status: resolved
Worked: 1 min
Priority: 0/
Queue: FileHandle-Unget

People
Owner: Nobody in particular
Requestors: at [...] altlinux.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
[guest - Thu May 20 23:02:40 2004]: Show quoted text
> 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.
Actually, I've already fixed this in the next version.
[DCOPPIT - Mon May 24 12:57:56 2004]: Show quoted text
> [guest - Thu May 20 23:02:40 2004]: >
> > 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.
> > Actually, I've already fixed this in the next version.
How about releasing the next version?