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

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

Thread Previous | Thread Next
From:
Graham Barr
Date:
October 21, 1999 09:45
Subject:
Re: PERL_HEADER env varb: was: Addition to @INC
Message ID:
19991021113833.M320@adsl32.static36.directlink.net
On Wed, Oct 20, 1999 at 11:11:56PM -0500, Ed Peschko wrote:
> use strict;
> use DBI;
> use FindBin;           
> use lib $FindBin::Bin; 
> use IO;
> use Data::Dumper;
> use Rebol;
> use lib "put site specific libraries here"; 
> 
> And sometimes, I wish that there was a method for *compiling* these commonly
> used modules into the interpreter itself, as part of Configure.

Well you can get close. Create a .pm file (say MuStuff.pm) with no package statement
and place it in @INC. Then you use lines will simply be

use MyStuff;

-- 
For myself I am an optimist--it does not seem to be much use being
anything else. -- Winston Churchill


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