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

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

Thread Previous | Thread Next
From:
Ed Peschko
Date:
October 21, 1999 11:04
Subject:
Re: PERL_HEADER env varb: was: Addition to @INC
Message ID:
199910211800.NAA06010@foghorn.csgsystems.com
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 MuStuff.pm) 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

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About