Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Two Version Of Perl Side By Side

by ChloeRadshaw (Initiate)
on Nov 21, 2008 at 23:07 UTC ( [id://725252]=perlquestion: print w/replies, xml ) Need Help??

ChloeRadshaw has asked for the wisdom of the Perl Monks concerning the following question:

We have perl version 5 running at work and I need to be abel to install version 6 onto my machine to run some new perl modules which I have checked out of CPAN.

I have two questions:

1) Can you have 2 perl installations side by side? This is important because we have other apps that could be affected as a result.

2) Is there any way of installing Perl on a windows machine which does not have admin rights? Our admin has prevented us writing to the c:\program files direcory.

Any ideas much appreciated
C:\>perl -v This is perl, version 4.0 perl for NT $$Revision: 4.0.1.8 Build 3 Patch level: 36 Copyright (c) 1989, 1990, 1991, Larry Wall NT Copyright (c) 1993, Intergraph Corporation Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 4.0 source +kit.

Replies are listed 'Best First'.
Re: Two Version Of Perl Side By Side
by ikegami (Patriarch) on Nov 21, 2008 at 23:36 UTC
    I have 6 versions of Perl installed my system. Perl can be installed to any directory and happily lives there independent of anything else, so you shouldn't need admin rights. You shouldn't install to "C:\Program Files\..." anyway because some scripts and/or modules have problems with spaces in paths.
Re: Two Version Of Perl Side By Side
by ikegami (Patriarch) on Nov 21, 2008 at 23:48 UTC

    I need to be abel to install version 6 onto my machine to run some new perl modules which I have checked out of CPAN.

    I wasn't aware of the presence of Perl 6 modules on CPAN. I'd appreciate it if you gave me an example if you're not talking about http://www.cpan6.org/

      > I'd appreciate it if you gave me an example

      most probably the OT talks about the Perl6:: "simulation" branch ... eg. Perl6::Say

      in this case ... well ... no need to install perl6 straight away ... ; )

      Cheers Rolf

      UPDATE: added irony indicator
        The Perl6:: modules add Perl6 features to Perl5.
Re: Two Version Of Perl Side By Side
by GrandFather (Saint) on Nov 21, 2008 at 23:22 UTC

    Strawberry Perl and ActiveState's Perl install to c:\Perl by default so you don't need to be an admin to install on XP (I'm unsure about what Vista may allow). You can install Perl to a flash drive and run it from there. RFC: Perl-onna-Stick may help get things going with Strawberry in that fashion.


    Perl reduces RSI - it saves typing
Re: Two Version Of Perl Side By Side
by CountZero (Bishop) on Nov 21, 2008 at 23:23 UTC
    I have my Activestate Perl installed in c:\data, which is on my Windows machine the place where we can install applications without having admin rights. However, a part of the install script wants to make some changes to the registry and that fails if you have no admin rights. I figured out it has to do with the path (so perl your_script.pl just works) and with associating the .pl extension with the perl interpreter. You can easily do these things by hand.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: Two Version Of Perl Side By Side
by FunkyMonk (Chancellor) on Nov 21, 2008 at 23:39 UTC
    I hope you are aware that the specification of the Perl 6 language isn't complete yet, and the current implementations are "getting there" but still have some way to go.
Re: Two Version Of Perl Side By Side
by Anonymous Monk on Nov 21, 2008 at 23:16 UTC
    Pick a directory, any directory, manage your enviroment (path ...) and you can have a million perl's side by side
    /blah/blah/perl1/ /blah/blah/perl2/ /blah/blah/perl3/ /blah/blah/perl4/ /blah/blah/blah/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://725252]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-26 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found