in reply to Using a simple module without full package names

@EXPORT needs to contain strings:
@EXPORT = qw( get_msg );

Replies are listed 'Best First'.
Re^2: Using a simple module without full package names
by wfsp (Abbot) on Jul 12, 2004 at 16:07 UTC
    Many thanks!
    I'd looked at it so long I would never have seen it. I now have to fix the head shaped dent in the wall!
    Again, thanks
      It's good to be able to use Exporter and to understand it but I got bored typing the same old Exporter stuff over and over again, so I wrote Exporter::Easy. It turns
      use Exporter; use vars qw( @ISA @EXPORT ); @ISA = qw( Exporter ); @EXPORT = ( &get_msg );
      into
      use Exporter::Easiest q( EXPORT => &get_msg )
      and lots more.

      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.

        Thanks for that. I'll have a look, wfsp