The problem is less the complexity, it's more the application that at least I lack. I have some small toy code that essentially does the following:

  1. Connect to another machine (via ssh, rsh or telnet)
  2. Spawn perl -x there
  3. Pipe some small code there that does MIME-ish decoding of stuff read from STDIN and outputs MIME-ish delimited Data::Dumper elements to STDOUT

With that code (about 50 lines or so), I get a remote Perl interpreter to which I can easily pass code to execute. The main uglyness is the passing of parameters back, as you most likely want to produce output (array elements) as soon as they become available and not when the remote function has returned completely.

The second ugly problem is of course the collecting and coordination of multiple such processes, and for that, I would either resort to a database for serialization (thus ditching my low-infrastructure approach) or have to resort to POE for any but the simplest tasks, neither of which is really nice.

I originally developed that code to implement a perlish rsync variant, so I only need some more or less synchronous execution, but the packaging of input and output parameters and an elegant method of actually writing the remote code is what paused the development. Using B::Deparse lets me transfer the trivial code over to the remote machine, so Perl catches syntax errors on the local side already, but what remains and stops me is some way of transferring data more efficiently via pack/unpack instead of Data::Dumper.

Update: Added last paragraph depicting the sad state of this idea


In reply to Re: Perl Grids by Corion
in thread Perl Grids by Eyck

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.