You omitted the 'require Exporter'.package YourModule; require Exporter; @ISA = qw(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;
In reply to Re: Issue with Exporter
by imp
in thread Issue with Exporter
by palette
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |