in reply to Automatically load module on startup?

perlrun#PERL5OPT

see sitecustomize undef perlrun#* f*

  • Comment on Re: Automatically load module on startup?

Replies are listed 'Best First'.
Re^2: Automatically load module on startup?
by zengargoyle (Deacon) on Mar 09, 2012 at 08:23 UTC

    Yay sitecustomize.pl, no environment variable tweakage needed.

    $ cat /var/local/perl/5.14.2/lib/site_perl/5.14.2/sitecustomize.pl package AlwaysRun; use Carp qw(:DEFAULT cluck); cluck "$0 $$: I am begun at " . localtime(); 1; $ perl -E 'say "howdy"' -e 16199: I am begun at Fri Mar 9 00:16:58 2012 at /var/local/perl/5. +14.2/lib/site_perl/5.14.2/sitecustomize.pl line 3. require /var/local/perl/5.14.2/lib/site_perl/5.14.2/sitecustom +ize.pl called at -e line 0 main::BEGIN() called at /var/local/perl/5.14.2/lib/site_perl/5 +.14.2/sitecustomize.pl line 0 eval {...} called at /var/local/perl/5.14.2/lib/site_perl/5.14 +.2/sitecustomize.pl line 0 howdy
Re^2: Automatically load module on startup?
by adler187 (Initiate) on Mar 09, 2012 at 17:07 UTC
    Thanks, that is exactly what I needed. I was just looking at that documentation yesterday, but must have glanced over it.