It's not a good idea, because a future CPAN installation might update it and overwrite your patches.
It's better to copy it to another path before patching and prepend it to @INC.
Salva just explained it recently: Re: How to redefine a modules private function?
To your actual question:
you most probably entered an error while patching. A guess: the compilation fails during requirement and the module never returns the necessary true value.
It's hard to tell tho without more details, but did you make sure the new code compiles?
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: editing of installed modules, a story of failure
by LanX
in thread editing of installed modules, a story of failure
by gsd4me
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |