Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Note on usage of ours variables and a question

by afoken (Chancellor)
on Nov 20, 2019 at 20:39 UTC ( [id://11108951]=note: print w/replies, xml ) Need Help??


in reply to Re: Note on usage of ours variables and a question
in thread Note on usage of ours variables and a question

use parent 'Exporter';

No need to inherit from Exporter, importing its import() method is possible since Perl 5.8.3 (2004-01-14), and it is almost always sufficient:

use Exporter qw( import );

See also Re: Advice on style, Re^2: Advice on style, and of course Exporting-Without-Inheriting-from-Exporter of Exporter.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11108951]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-26 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found