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

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

From:
Ed Peschko
Date:
October 20, 1999 22:39
Subject:
Re: PERL_HEADER env varb: was: Addition to @INC
Message ID:
199910210535.AAA08544@foghorn.csgsystems.com
On Thu, Oct 21, 1999 at 01:33:04AM -0400, Ilya Zakharevich wrote:
>Ed Peschko writes:
>> *sigh*. Ok, your point is well taken, but sometimes I *really* wish that there 
>> was something like a PERL_HEADER variable in which you could put stuff like 
>> this, and which would be included at the beginning of each file. Yes, there 
>> would be a performance hit, and yes it has the potential to make things 
>> non-portable, but its really beginning to SUCK to have to add six+ lines at 
>> the beginning of every file just to get functionality that is so common but 
>> also site-specific. Stuff like:
>> 
>> use strict;
>> use DBI;
>> use FindBin;           
>> use lib $FindBin::Bin; 
>> use IO;
>> use Data::Dumper;
>> use Rebol;
>> use lib "put site specific libraries here"; 
>
>What about PERL5OPTS (sp?).  Just put all these -M's there.

Ok, I could live with that - can PERL5OPTS be set to a default whilst 
compiling perl itself?

Ed



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