rir has asked for the wisdom of the Perl Monks concerning the following question:
To me, the BEGIN block around the Exporter stuff seems extraneous. What danger is this construction meant to avoid?package Something; BEGIN { use Exporter (); use vars qw($VERSION @ISA @EXPORT_OK); $VERSION = '0.05'; @ISA = qw(Exporter); @EXPORT_OK = qw(&errstr); }
Be well,
rir
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: BEGIN { use Exporter; ...
by tilly (Archbishop) on Dec 22, 2008 at 18:08 UTC |