March 2002 Perl Hardware Store 11

2. Manual Importing and Exporting

Simple Example

         package MyModule;
         *LOG = \&main::LOG;    # Import
         # This works now:
         LOG("I slaughtered that guy!");     
         # (It calls main::LOG)


Next Copyright © 2002 M-J. Dominus