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

Is there a contemporary Perl that I can set up on a flash drive that has CPAN set up and ready to go for Windows and Linux? I'm looking for a torrent or something similar that I can just throw onto a flash drive and take with me on the go. I need Windows and Linux distributions, with all of the module repository ready to go.

Replies are listed 'Best First'.
Re: Perl + CPAN torrent or ISO
by Anonymous Monk on Nov 28, 2013 at 01:54 UTC
Re: Perl + CPAN torrent or ISO
by dasgar (Priest) on Nov 28, 2013 at 04:19 UTC

    I'm not personally familiar with Citrus Perl that was suggested by someone else. For Windows, Strawberry Perl does offer a portable version that can be used on a flash drive.

    For some info on how to create a portable Perl for Linux, someone shared some links on how to do this at Re^4: Advantages of Activeperl vs Strawberry Perl.

      CitrusPerl provides downloads for win32/linux/macosx ... all portable; sure you can mix match, but :)
Re: Perl + CPAN torrent or ISO
by taint (Chaplain) on Nov 28, 2013 at 02:42 UTC
    Greetings.

    Assuming you already have an installation of Windows, and Linux. You could also pack up both of them (Perl directories) in tar balls, and unpack them onto your thumb drive, in separate directories, and setup an ENV variable, that points accordingly.

    Windows
    SET perl="/path/to/perl.exe"
    SET lib="/path/to/perl/lib"
    Where Linux is concerned, you could probably even create a symlink to your copy on the FlashDrive.

    Perhaps not as elegant, but sure simple enough.

    HTH

    --Chris

    #!/usr/bin/perl -Tw
    use Perl::Always or die;
    my $perl_version = (5.12.5);
    print $perl_version;
      Not unless your perl is relocatable ... which win32 are by default and linux generally arent