| March 2002 | Perl Hardware Store | 10 | 
The main package has a LOG function
You want all your modules to have access to LOG
This won't work:
        package MyModule;
        LOG("That had to hurt!");
Undefined subroutine &MyModule::LOG called at...
Non-exporting solution:
         package MyModule;
         main::LOG("That had to hurt!");
| Next |  | Copyright © 2002 M-J. Dominus |