in reply to Re^3: How to redefine a modules private function?
in thread How to redefine a modules private function?
What output do you get? Because I get
Constant subroutine ONE redefined at Foo.pm line 5. Subroutine TWO redefined at Foo.pm line 6. Constant subroutine THREE redefined at Foo.pm line 8. One=111, Two=222, Three=333 One=111, Two=222, Three=333
which is what I would expect, since loading Foo.pm redefines the subs to the values that it has (111, 222, 333), not the values that we want (444, 555, 666).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to redefine a modules private function?
by soonix (Chancellor) on Mar 09, 2022 at 17:08 UTC |