Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-ValidateRM CPAN distribution.

Report information
The Basics
Id: 67894
Status: resolved
Priority: 0/
Queue: CGI-Application-Plugin-ValidateRM

People
Owner: MARKSTOS [...] cpan.org
Requestors: SILASMONK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in:
  • 1.20
  • 1.22
  • 2.00
  • 2.00_01
  • 2.1
  • 2.2
  • 2.3



Subject: UNIVERSAL->import is getting deprecated with Perl 5.12.0
We have a bug report in Debian concerning the transition to perl 5.12: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=615885. From perl5120delta.pod, which lists significant changes with Perl 5.12.0: The method C<< UNIVERSAL->import() >> is now deprecated. Attempting to pass import arguments to a C<use UNIVERSAL> statement will result in a deprecation warning. From my build log on i386 with perl 5.12.3-1 from experimental: UNIVERSAL->import is deprecated and will be removed in a future perl at t/01_basic.t line 37 I can see this warning in the cpan test results: http://www.cpantesters.org/cpan/report/e4d82ae8-7208-11e0-a6bc-926ac0b02281
On Mon May 02 07:23:00 2011, SILASMONK wrote: Show quoted text
> We have a bug report in Debian concerning the transition to perl 5.12: > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=615885. > > From perl5120delta.pod, which lists significant changes with Perl 5.12.0: > > The method C<< UNIVERSAL->import() >> is now deprecated. Attempting to > pass import arguments to a C<use UNIVERSAL> statement will result in a > deprecation warning. > > From my build log on i386 with perl 5.12.3-1 from experimental: > > UNIVERSAL->import is deprecated and will be removed in a future perl at > t/01_basic.t line 37 > > I can see this warning in the cpan test results: >
http://www.cpantesters.org/cpan/report/e4d82ae8-7208-11e0-a6bc-926ac0b02281 Show quoted text
>
The attached patch seems to wok for me.
Subject: can.patch
Author: Nicholas Bamber <nicholas@periapt.co.uk> Subject: UNIVERSAL::import deprecated in perl 5.12 This usage seems to be unnecessary anyway. Bug: http://rt.cpan.org/Public/Bug/Display.html?id=67894 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=615885 Last-Update: 2011-06-19 --- a/t/01_basic.t +++ b/t/01_basic.t @@ -34,7 +34,6 @@ { - use UNIVERSAL (qw/can/); ok( $t3_obj->can('dfv_results'), "has dfv_results method" ); ok( $t3_obj->can('dfv_error_page'), "has dfv_error_page method" ); ok( $t3_obj->can('check_rm_error_page'), "has check_rm_error_page method" );
Subject: Re: [rt.cpan.org #67894] UNIVERSAL->import is getting deprecated with Perl 5.12.0
Date: Mon, 20 Jun 2011 09:57:40 -0400
To: bug-CGI-Application-Plugin-ValidateRM [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
Thanks. We'll take a look.
releasing 2.4 today.