Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Issue with Exporter

by imp (Priest)
on Jan 11, 2007 at 13:20 UTC ( [id://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;

Log In?
Username:
Password:

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

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

    No recent polls found