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

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

Thread Previous | Thread Next
Johan Vromans
October 20, 1999 23:26
Re: PERL_HEADER env varb: was: Addition to @INC
Message ID:
On Thu, Oct 21, 1999 at 12:58:49AM -0500, Ed Peschko wrote:
> On Wed, Oct 20, 1999 at 08:59:08PM -0700, Chip Salzenberg wrote:
> >Have you considered
> >   export PERL5OPT='-Mstrict -MDBI -MIO -MData::Dumper'
> yes, about five minutes ago... Now if you could compile a default value for this
> into a perl executable, I'd be in heaven...

I think you'll regret it very fast. It's a long way down to earth...
Doing so will effectively create your personal (personalized) perl. Any time
you show someone a neat and handy perl script, the other person will not
be able to reproduce your results. After a while you forget about the 
personalized setup, and you'll start wondering why other people's scripts
do not run as expected. Or why your script does not run on another system.
Or with a newer Perl version.

I would definitely choose for a clearly visible approach, like

  require "/usr/share/perl/";

(and always carry a floppy with the most recent with me).

-- Johan

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