August 1999 Perl Hardware Store Slide #10

Simple Example

Importing it into package Foo is a one-liner:

         package Foo;
         *LOG = \&main::LOG;    # Import
         LOG("Look over there!  A dancing cow!");     
         # (Calls main::LOG)

Simple! Convenient!


Next Copyright © 1998 M-J. Dominus