Re: Perl upgrade @INC help
- From: iaccounts@xxxxxxxxxx (Steve Bertrand)
- Date: Wed, 28 Nov 2007 21:13:51 -0500
I think you're thinking that the modules themselves will somehow be
copied or re-installed. When you install a new version of perl, it
will include some new modules, but extra modules that you've installed
won't be changed.
Yes, I was thinking this. Now I think that a new perl will be installed
in a different location, leaving the old perl as it was, in it's glory
with the old modules untouched. I think ;)
If you want to use an old module "whether it breaks or not", you can
include a 'use lib' line that tells the new perl where to find it.
use lib '/path/to/old/module/directory/';
use Some::Old::Module qw{ from that directory };
That's what I've done in the past, and as stated above, it seems things
will install a new Perl binary with it's own new stuff without
disrupting what I have currently.
So it seems as though I can 'test' my old modules and libs selectively
against the new perl before I implement it across the board. That
understanding is what prompted me to relax and grab the drink :)
You can and probably should test the new binary on
your old programs before you install it.
Thanks for confirming. Off to fetch another pint.
If so, if they do break (particularly the in-house ones), will
warnings/strict throw errors as to what I need to patch?
Maybe! In your situation, I'd probably build a proper distribution out
of the in-house modules, and I'd start putting together a test suite.
Without tests, nobody knows whether the modules are already broken.
Still, chances are good that the modules will work just as well (or
just as poorly) under the new perl.
Well, the old modules I speak of aren't mine, and the coder's scripts
previous to me have no knowledge of strict/warnings, so I've been
hacking them in order to be able to code with and around them, bypass
them and fix them in order to produce results from them that are
expected, and of course this has to always happen live in production.
Make sense right?
We'll see what happens. I can't blame the last coder that was in my
position, as he was coding as he learned, just as I am. I just hope that
I'm being a little better...
Thanks,
Steve
.
- References:
- Perl upgrade @INC help
- From: Steve Bertrand
- Re: Perl upgrade @INC help
- From: Tom Phoenix
- Re: Perl upgrade @INC help
- From: Steve Bertrand
- Re: Perl upgrade @INC help
- From: Tom Phoenix
- Perl upgrade @INC help
- Prev by Date: Re: Perl upgrade @INC help
- Next by Date: How can I sort files by timestamp without slurping?
- Previous by thread: Re: Perl upgrade @INC help
- Next by thread: Re: Perl upgrade @INC help
- Index(es):
Relevant Pages
|