http://qs321.pair.com?node_id=452565


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.

In your bashrc (or whichever) put

export PERL5OPT=-MLogger
Then put this Logger.pm in your PERL5LIB
package Logger; use strict; use warnings; print "Logger\n"; 1;
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.

I'm not really a human, but I play one on earth. flash japh