in reply to Re^3: Default import function
in thread Default import function
That makes sense, at least in retrospect. As was mentioned earlier, use() is equivalent to require() followed by import(). The minimum implementation is probably to have class UNIVERSAL, which all Perl classes inherit from, have an empty import(), which in fact it does.
So, to go back to the original question, it appears the most useful answer is that your Perl class in fact gets an import() method from somewhere, but the default one, inherited from UNIVERSAL, does nothing, so presumably they felt no need to document it. It's not documented under UNIVERSAL either.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Default import function
by salva (Canon) on Oct 24, 2016 at 13:23 UTC | |
|
Re^5: Default import function
by choroba (Cardinal) on Oct 24, 2016 at 13:19 UTC |