Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 having an uproarious good time at the Monastery: (7)
As of 2014-10-23 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (123 votes), past polls