Raven.Dmy has asked for the wisdom of the Perl Monks concerning the following question:

I use perl for systems administration in a windows environment and would like to know if Perl 6 can be used the way I use it now.

Because I can't install Perl on every server and workstation in the company, I copy my ActiveState c:\perl folder, with all my favorite CPAN and PPM's and custom modules, to a network share. Then, any system can use Perl like so:

 \\server\share\perl\bin\perl.exe \\server\share\scripts\myscript.pl --my --arguments

Reading how parrot will work makes it sound like perl+parrot will be more like java/C#, where the runtime MUST be on the machine running the script.

For you Perl 6 guys, what can you reveal about the possibilities of running Perl 6 from a central location as I do with Perl 5 now?

Replies are listed 'Best First'.
Re: running Perl 6 from a network share?
by chromatic (Archbishop) on Mar 20, 2007 at 02:30 UTC

    I see no reason why your Perl 5 technique would not work with Perl 6 or Parrot. If anything, it ought to be easier if even the XS equivalent files are cross-platform bytecode (and it appears that they may be).

    As long as Parrot can read the libraries it needs, and as long as you have the proper libparrot for your architecture, everything should work correctly.

Re: running Perl 6 from a network share?
by CountZero (Bishop) on Mar 20, 2007 at 20:37 UTC
    If all your server and workstations run compatible versions of Windows, you could give that share a drive-letter and for all purposes every server and workstation would think the shared-drive is part of its own system. So there is no reason why it would not work.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

      Technically speaking, mapped drives are not transparent to the application and some will complain about using a network share. If you you need to fool an application then the 'subst' command usually works. I do not think it matters in this case but I did not want anyone to get the wrong impression.
Re: running Perl 6 from a network share?
by beryan (Scribe) on Mar 20, 2007 at 19:28 UTC
    Sorry in avance for the (wrong?) reply. Maybe what you mean is if Perl6 will work in "all in a folder" autosufficient and isolated about other systems dependencies. Note that your are passing the working dir as an absolute path and perl (without taking care about where is it) works it. As far as I know, java runtime runs this way, and nothing stop parrot from doing same. Nevertheless if you can "chroot" the bird, it should sing fine!