Jesse Vincent
2010-04-02 14:54:51 UTC
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 $@;
}
--
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 $@;
}
--