A question and a question about the question.
What is the difference between 'use base (Exporter);' and 'use Exporter;'? I am modifying a CPAN module, Module::Grapher . In a previous thread, I was kindly advised to import a function and a hashref, rather than addressing them with an unweildy pacakge prefix. I found that the code says 'use base (Exporter);' but doesn't actually export anything. What I'm used to, and what I found in the Simple Module Tutorial, is 'use Exporter;'? Is there a difference?
Meta-Question: I tried to SuperSearch for 'use base'. Alas many of the answers I received looked like
Re^3: confused about reading from database using an array
Was there a better way for me to search?
The 'use base' issue thread helped a little. But I'm still confused. The Module::Dependency code is object-oriented — and are some of the modules it uses are. Can I leave 'use base (Exporter)' in place and add 'use Exporter;'? Or should I comment it out?
throop
In reply to Twofer: 'use base' vs 'use'; and SuperSearch by throop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |