If I have package Foo::Bar that is use'd in multiple different classes; when I use these same classes in a single script, how many times does perl compile Foo::Bar? Compiled once for each class, or compiled only once and all classes load it (bring it into their namespace)? My question stems from what Foo::Bar's function is, which creates a lot of overhead when import'd.
|Replies are listed 'Best First'.|
Re: How many times is Foo::Bar loaded?
by LanX (Bishop) on Apr 09, 2013 at 19:32 UTC