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

Jesse Vincent <[email protected]> Fri, 2 Apr 2010 10:54:51 -0400
Newsgroups gmane.comp.web.mason.devel
Message-ID <[email protected]>
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