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

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

Thread Previous | Thread Next
From:
Johan Vromans
Date:
October 20, 1999 23:26
Subject:
Re: PERL_HEADER env varb: was: Addition to @INC
Message ID:
19991021082642.B15914@xs4all.nl
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/common.pl";

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

-- Johan

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