in reply to Loading class
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Loading class
by IlyaM (Parson) on Mar 07, 2003 at 13:51 UTC | |
by broquaint (Abbot) on Mar 07, 2003 at 13:56 UTC |