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

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

Thread Previous | Thread Next
From:
Ilya Zakharevich
Date:
October 20, 1999 22:33
Subject:
Re: PERL_HEADER env varb: was: Addition to @INC
Message ID:
199910210533.BAA28086@monk.mps.ohio-state.edu
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.

Ilya

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