go ahead... be a heretic | |
PerlMonks |
Re: Strawberry, CPAN and PERL5by perl-diddler (Chaplain) |
on Sep 02, 2019 at 05:15 UTC ( [id://11105403]=note: print w/replies, xml ) | Need Help?? |
First off, I'm sorta guessing, but l5, sounds like an abbreviation for
/usr/lib/perl(5)/(site|local)/.... Since in a normal install of Win7
you are your own 'site'. In regards to SBperl not putting thing under neat your own User dir, where would you put your 'local site' modules dir that were added by the user that were in a personal version of SBperl? If you were compiling for a company, you might already know how to build your own perl, but for an individual?
Have you looked at %Config to see what has the path under your home dir? (i.e. is it the SITE paths?) -- sounds like not or it should have found them at run time. I just dumped my config with: Might also want to look at your CPAN config for clues: more ~/.cpan/CPAN/MyConfig.pm The other thing to do would be to create a 'lib' dir under your executable and add the relative path at runtime: For conditional compilation, I used something like: Switches will check if "-DNODEBUG" is on the command line, if so, it will call the first eval, otherwise the end. The constant created (_NODEBUG_) becomes a compile time constant that will be either '1' or 'undef'. When working locally, create an alias or batch file to run your program with the -DNODEBUG switch. You can still take it out later, but this way if you upload your code w/o removing your custom code, it won't get activated. Since _NODEBUG_ is a compile time constant, perl should either not include or include your debug code at runtime. Those were just a few things I thought of off the top of my head. Hope it helps!
In Section
Seekers of Perl Wisdom
|
|