It works because use acts more like this:
BEGIN { require Employee; Employee->import() if Employee->can("import"); }
If your module doesn't have an import, or doesn't inherit from something that does, then the call is skipped.
In reply to Re: Loading class
by jasonk
in thread Loading class
by rrajendr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |