in reply to Is there a module which Perl has to load when using any module?
Thanks for all the replies. I did figure out something...just create my own module, and automatically load it with PERL5OPT.
I'm not really a human, but I play one on earth. flash japh
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;
I'm not really a human, but I play one on earth. flash japh
|
---|
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 (Archbishop) on May 03, 2005 at 09:51 UTC | |
by ihb (Deacon) on May 04, 2005 at 12:17 UTC |
In Section
Seekers of Perl Wisdom