<p dir="ltr">Pinto??</p>
<p dir="ltr">--<br>
sent by a bradDroid - please expect bradVity</p>
<div class="gmail_quote">On Jul 9, 2014 11:38 AM, "Doug Yatcilla" <<a href="mailto:yatcilla@purdue.edu">yatcilla@purdue.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed Jul 9 11:19:31 2014, Dave Jacoby <<a href="mailto:jacoby.david@gmail.com">jacoby.david@gmail.com</a>> wrote:<br>
> We might go into this deeper on Tuesday (less than a week until the next<br>
> Perl Mongers meeting! See you at 11:30 in WSLR 116!), but this is an issue<br>
> I'm having.<br>
><br>
> In Javascript, when I include a library I wrote, I put <script<br>
> src="bulldada_0.1.js"> and if I want to work on the module and make<br>
> changes, I can do that to bulldada_0.2.js, and I can change the HTML when<br>
> and if I'm ready to use 0.2. Theoretically, I can have a directory full of<br>
> bulldada_*.*.js.<br>
><br>
> The capabilities are almost there with Perl. I can specify a version in my<br>
> module:<br>
> package Bull::Dada ;<br>
> our $VERSION = 0.01 ;<br>
> 1<br>
><br>
> I can specify a version number in my code;<br>
> use strict ;<br>
> use lib '/home/jacoby/lib' ;<br>
> use Bull::Dada 0.01 ;<br>
><br>
> But, Bull::Dada, as I understand it, has to be<br>
> /home/jacoby/lib/Bull/Dada.pm. I couldn't have it be /home/jacoby/lib/Bull/<br>
> <a href="http://Dada_0.01.pm" target="_blank">Dada_0.01.pm</a> alongside <a href="http://Dada_0.02.pm" target="_blank">Dada_0.02.pm</a>, where I'm changing the subroutines<br>
> around and such, but I'm not ready to use it in real code, or perhaps it<br>
> uses OAuth 2.0 while 0.01 uses OAuth 1.0 or whatever.<br>
><br>
> To my knowledge, I cannot do this in Perl, as much as I may desire it. Am I<br>
> wrong?<br>
<br>
I, too, would be interested in knowing how to manage multiple versions<br>
of perl modules in a single Perl installation. I don't think it is<br>
easily done though.<br>
<br>
Here is an old but probably abandoned attempt:<br>
<a href="http://search.cpan.org/~ingy/only/" target="_blank">http://search.cpan.org/~ingy/only/</a><br>
<br>
The above idea might be feasible for you, though. Keep different<br>
module versions in different directories and adjust $PERL5LIB or<br>
"use lib" path to correspond to the version you want.<br>
<br>
I hear some use <a href="http://perlbrew.pl/" target="_blank">http://perlbrew.pl/</a> to keep multiple versions of perl<br>
(and associated modules) around. But it seems designed more as a<br>
single-user solution rather than a system-wide one.<br>
<br>
Perl 6 might address this issue:<br>
<a href="http://perl6advent.wordpress.com/2013/12/11/day-11-installing-modules/" target="_blank">http://perl6advent.wordpress.com/2013/12/11/day-11-installing-modules/</a><br>
<br>
-Doug<br>
_______________________________________________<br>
Purdue-pm mailing list<br>
<a href="mailto:Purdue-pm@pm.org">Purdue-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/purdue-pm" target="_blank">http://mail.pm.org/mailman/listinfo/purdue-pm</a><br>
</blockquote></div>