Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by afoken (Canon)
on Nov 20, 2019 at 20:39 UTC ( #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 Exporter#Exporting-Without-Inheriting-from-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
Node Status?
node history
Node Type: note [id://11108951]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2020-05-25 04:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (143 votes). Check out past polls.

    Notices?