June 2001 Making a Module Back Slide 10 Forward

%EXPORT_TAGS

package Sample::Module;
use strict;

BEGIN{
  use Exporter ();
  use vars qw ($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
  $VERSION     = 0.01;
  @ISA         = qw (Exporter);
  @EXPORT      = qw ();
  @EXPORT_OK   = qw ();
  %EXPORT_TAGS = ();
}

#Everything else goes here

1;
__END__

  • Pre-defined groups of things to export. All functions and variables included must also be in either @EXPORT or @EXPORT_OK.


Copyright © 2001 R. Geoffrey Avery Back Contents Forward