March 2002 | Perl Hardware Store | 11 |
Importing LOG into MyModule is a one-liner:
package MyModule;
*LOG = \&main::LOG; # Import
# This works now: LOG("I slaughtered that guy!");
# (It calls main::LOG)
Simple! Convenient!
Next | Copyright © 2002 M-J. Dominus |