develooper Front page | perl.perl5.porters | Postings from October 1999

Re: PERL_HEADER env varb: was: Addition to @INC

Ed Peschko
October 21, 1999 11:04
Re: PERL_HEADER env varb: was: Addition to @INC
Message ID:
On Thu, Oct 21, 1999 at 11:38:33AM -0500, Graham Barr wrote:
>On Wed, Oct 20, 1999 at 11:11:56PM -0500, Ed Peschko wrote:
>> use strict;
>> use DBI;
>> use FindBin;           
>> use lib $FindBin::Bin; 
>> use IO;
>> use Data::Dumper;
>> use Rebol;
>> use lib "put site specific libraries here"; 
>> And sometimes, I wish that there was a method for *compiling* these commonly
>> used modules into the interpreter itself, as part of Configure.
>Well you can get close. Create a .pm file (say with no package statement
>and place it in @INC. Then you use lines will simply be
>use MyStuff;

No, that doesn't quite work - exporting issues make it more complicated than
its worth. And say you want to enforce 'use strict' on all programs in a certain
development environment. Compiling the path into the executable makes the 
easiest way.

Ed Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About