Re: [PATCH] - Stop mason from triggering a deprecation warning on 5.12

Jonathan Swartz <[email protected]> Fri, 2 Apr 2010 10:26:09 -0700
Newsgroups gmane.comp.web.mason.devel
Message-ID <[email protected]>
Hi Jesse --

Thanks for the heads up. We'll do a release this weekend.

Jon

On Apr 2, 2010, at 7:54 AM, Jesse Vincent wrote:

> While testing Best Practical's apps against 5.12, I noticed that Mason
> spews...rather a lot of warnings about using a feature deprecated in
> Perl 5.6.0.   The following patch against Mason 1.44 passes all tests
> for me and quiets the warning.
>
> We're currently set to release 5.12.0 next Wednesday. It'd be great to
> see mason installing clean on 5.12.0 on release day, if that's  
> plausible.
>
> -Jesse
>
>
> --- lib/HTML/Mason/Request.pm.144   2010-04-02 10:50:25.894807900  
> -0400
> +++ lib/HTML/Mason/Request.pm   2010-04-02 10:50:45.515807986 -0400
> @@ -311,7 +311,7 @@
>                     #
>                     {
>                         no strict 'refs';
> -                        unless (defined(%{$plugin . "::"})) {
> +                        unless (%{$plugin . "::"}) {
>                             eval "use $plugin;";
>                             die $@ if $@;
>                         }
> -- 
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Mason-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mason-devel


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev