in reply to Is there a module which Perl has to load when using any module?
In your bashrc (or whichever) put
Then put this Logger.pm in your PERL5LIBexport PERL5OPT=-MLogger
Of course this is just a rudimentary test. You could put whatever code you wanted in there....something to append to a logfile. I wonder if you would need to flock it, if a bunch of perl scripts were running constantly.package Logger; use strict; use warnings; print "Logger\n"; 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is there a module which Perl has to load when using any module?
by ihb (Deacon) on May 02, 2005 at 22:19 UTC | |
by zentara (Cardinal) on May 03, 2005 at 09:51 UTC | |
by ihb (Deacon) on May 04, 2005 at 12:17 UTC |