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

Re: Issue with Exporter

by imp (Priest)
on Jan 11, 2007 at 13:20 UTC ( #594143=note: print w/ replies, xml ) Need Help??


in reply to Issue with Exporter

The synopsis for Exporter says:

package YourModule;
require Exporter;
@ISA = qw(Exporter);
You omitted the 'require Exporter'.

I prefer this version personally:

package one; use strict; use warnings; use base qw(Exporter); our @EXPORT = qw(method1); sub method1 { print "method1\n"; } 1;


Comment on Re: Issue with Exporter
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2014-10-01 17:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (31 votes), past polls