The first is achieved by creating a new "patch" module inheriting (or importing) from the original class and overriding the differing methods.
The second is done by changing the differing subs right in place with local *Original::Class::method = sub {...} just before calling the module.
Note that because of the local all changes only happen temporarily till the end of scope of the calling sub. Like this other applications won't be affected.
HTH! :)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Help to override Spreadsheet/ParseXLSX.pm module
by LanX
in thread Help to override Spreadsheet/ParseXLSX.pm module
by boleary
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |