in reply to Constant subroutine main::C redefined
perllexwarn "tells" me
no warnings 'redefine';
... but I guess there should be a way to structure your code not to redefine an existing subroutine at all :-).
On Windows (resp. case-insensitive file systems), getting a lot of these for no obvious reason is a sure-fire symptom of loading a module using the wrong case for its name:
use File::Find; # ... and in a code location far away use file::find;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Constant subroutine main::C redefined
by BrowserUk (Patriarch) on Sep 10, 2012 at 12:00 UTC |
In Section
Seekers of Perl Wisdom