Fwd: using a subroutine ref w/ strict refs
Chris Radcliff
chris at velocigen.com
Wed Oct 17 13:32:40 CDT 2001
~sdpm~
Wilson, Doug wrote:
> And in an Apache::Registry script mod_perl environment, I like to put
> functions off in their own module anyway, so you don't end up with
> those 'function redefined' warnings when just the main script changes, or
> those 'variable won't stay shared' warnings when subroutines use
> closures or globals etc.
>
Straying to a tangent, I recently found out that 'function redefined'
warnings (previously the bane of my existence) can be shut off by using:
use warnings;
no warnings qw(redefine);
There are tons of similar options listed in the Camel (3rd ed) under the
Pragmatic Modules section. (Oddly enough, that section is mislabeled
"Modules" in my copy's thumb-index, while "Standard Modules" is
mislabeled "Pragmata." Has anyone else noticed the same?)
Cheers,
~chris
~sdpm~
The posting address is: san-diego-pm-list at hfb.pm.org
List requests should be sent to: majordomo at hfb.pm.org
If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:
unsubscribe san-diego-pm-list
If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.
More information about the San-Diego-pm
mailing list