Heffstar has asked for the wisdom of the Perl Monks concerning the following question:
Good Morning Monks,
I've spent a good amount of time reading previous posts about how this error is generally created: by redefining a subroutine that has previously been defined in the script or an imported script.
What if after searching through those modules which are imported, I don't find a matching subroutine that I'm apparently redefining?
Could there be yet another reason why this is occuring?
As far as I'm aware (this could be embarassing...), I'm not calling the subroutines incorrectly...
$return_value = &greater($arg1, $arg2);sub greater { my ($arg1, $arg2) = @_; return $arg1 > $arg2 ? $arg1 : $arg2; }
If anyone has any suggestions, that'd be fantastic. I don't want to strictly disable the particular warning either. I'm just not that ecstatic about my logs being bloated.
I've also checked all of my other completely seperate scripts on a whim and found no other subroutines with the same name.
I could post an actual subroutine, if someone might find it of some value...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Another Subroutine Redefined Post
by toolic (Bishop) on Nov 10, 2009 at 18:15 UTC | |
by Heffstar (Acolyte) on Nov 10, 2009 at 18:30 UTC | |
by toolic (Bishop) on Nov 10, 2009 at 18:48 UTC | |
|
Re: Another Subroutine Redefined Post
by JadeNB (Chaplain) on Nov 10, 2009 at 23:24 UTC | |
by Heffstar (Acolyte) on Nov 24, 2009 at 16:42 UTC | |
by JadeNB (Chaplain) on Nov 24, 2009 at 16:51 UTC | |
by Heffstar (Acolyte) on Nov 25, 2009 at 16:00 UTC | |
|
Re: Another Subroutine Redefined Post
by Khen1950fx (Canon) on Nov 10, 2009 at 23:03 UTC |