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

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

Thread Previous | Thread Next
Ilya Zakharevich
October 20, 1999 22:33
Re: PERL_HEADER env varb: was: Addition to @INC
Message ID:
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.


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