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

I have installed all modules with my system and shall i copy the perl folder and paste to other system will work for all modules or i need to go for seperate ppm installation for that machine too?

Replies are listed 'Best First'.
Re: copy and paste perl in other system
by perlplayer (Sexton) on Jul 23, 2009 at 11:55 UTC
    If you are very lucky and also the system version is same then you may not face any issue but in unix like systems thats rare] If all the dependencies for perl and asociated modules are also present in that system then you will not have any problem hopefully I can suggest you one method to cross check Go to the bin dir where your perl binary is ldd perl and check what are the libraries its linking check in your same system whether these libraries are present or not.
Re: copy and paste perl in other system
by mzedeler (Pilgrim) on Jul 23, 2009 at 12:16 UTC

    I'd reinstall using ppm or cpan every time. You get a lot of sanity checks for free that it doesn't pay off to bypass. If its to cumbersome because you are installing by hand, write a script to do it for you.

Re: copy and paste perl in other system
by ashish.kvarma (Monk) on Jul 23, 2009 at 13:15 UTC
    If you are thinking to copy paste the perl folder only because you don't want to install all modules individually on other system then have a look at autobundle on CPAN.
    Regards,
    Ashish
Re: copy and paste perl in other system
by syphilis (Archbishop) on Jul 23, 2009 at 14:17 UTC
    I reckon a copy'n'paste will probably work - but don't ignore the caveats/advice mentioned in earlier posts.

    Some modules depend on the setting of special environment variables, so those special environment variables would also have to be translated across to the other system. And if you have modules that depend on 3rd party dll's, then the 'path' environment variable needs to include the location of those 3rd party dll's. (That location might vary from one system to the other.)

    Cheers,
    Rob
Re: copy and paste perl in other system
by cdarke (Prior) on Jul 23, 2009 at 13:58 UTC
    You mention ppm so I guess you are on MS Windows. Don't forget the registry settings. You can set some of these with ASSOC and FTYPE commands, or find all the settings and dump them out, see HKEY_LOCAL_MACHINE/SOFTWARE/ActiveState. But, as someone said above, it is probably safer to reinstall the Perl product each time then add the modules.