You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 regels
406 B

  1. #-*-mode: Perl; coding: utf-8;-*-
  2. package MyModule;
  3. use strict;
  4. use Exporter;
  5. use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
  6. $VERSION = 1.00;
  7. @ISA = qw(Exporter);
  8. @EXPORT = ();
  9. @EXPORT_OK = qw(func1 func2);
  10. %EXPORT_TAGS = ( DEFAULT => [qw(&func1)],
  11. Both => [qw(&func1 &func2)]);
  12. sub func1 { return reverse @_ }
  13. sub func2 { return map{ uc }@_ }
  14. 1;