in reply to Re^2: Multiple Packages in a Module?
in thread Multiple Packages in a Module?
Actually, no. The equivalent would be BEGIN { require test_v1; test_v1->import; }.
No, because I wrote "in the case you describe", which is that there is one file test_v1.pm with two packages, Foo and Foo::Bar (no mention of a package test_v1). The code I showed is the equivalent of splitting that one file into two (Foo.pm and Foo/Bar.pm) and useing them individually.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Multiple Packages in a Module?
by haj (Vicar) on Jun 25, 2018 at 21:08 UTC | |
by haukex (Archbishop) on Jun 25, 2018 at 21:32 UTC |