June 2001 Making a Module Back Slide 13 Forward

__END__

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__

  • The "__END__" tells Perl to ignore anything after it. If you have documentation or retired functions you can't yet throw away, it is easy to leave them after the "__END__" where they will do no harm.


Copyright © 2001 R. Geoffrey Avery Back Contents Forward