in reply to Help to override Spreadsheet/ParseXLSX.pm module
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Help to override Spreadsheet/ParseXLSX.pm module
by Tux (Canon) on Apr 03, 2021 at 05:35 UTC | |
by LanX (Saint) on Apr 03, 2021 at 09:28 UTC | |
by boleary (Scribe) on Apr 03, 2021 at 12:20 UTC | |
Re^2: Help to override Spreadsheet/ParseXLSX.pm module
by boleary (Scribe) on Apr 03, 2021 at 12:11 UTC | |
by LanX (Saint) on Apr 03, 2021 at 12:42 UTC | |
by boleary (Scribe) on Apr 06, 2021 at 11:36 UTC | |
by bliako (Abbot) on Apr 03, 2021 at 19:43 UTC | |
by boleary (Scribe) on Apr 06, 2021 at 11:31 UTC |