in reply to Re^2: Using a simple module without full package names
in thread Using a simple module without full package names
intouse Exporter; use vars qw( @ISA @EXPORT ); @ISA = qw( Exporter ); @EXPORT = ( &get_msg );
and lots more.use Exporter::Easiest q( EXPORT => &get_msg )
Updated: I should point out that it's still Exporter that does the exporting, Exporter::Easy just eliminates the mindless typing involved in setting up @EXPORT, especially if you use tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Using a simple module without full package names
by wfsp (Abbot) on Jul 13, 2004 at 07:10 UTC |