Advanced warning: this has nothing to do with cgi or anything web-related.

I am a heavy user of photoshop and other adobe products, and they are beginning a heavy push towards javascript as a customization mechanism for users to do various things like build new UI elements, call lower-level functions within the app, etc. And it's not just adobe apps doing this--I'm finding many other products are also putting javascript engines in the middle of their UI and API layers.

Because I have a far more extensive library of perl apps that I've written (and acquired from cpan) over the years, I would love to somehow make use of them. I'm not familiar with javascript enough to know whether (or how) I can "link" to perl, or have any connection whatsoever to it from inside a javascript engine. Clearly, if Adobe wanted to, they could provide one as part of their particular library of javascript functions, but I doubt they have done such a thing (nothing of the sort is documented).

So, I wonder if there's a way to do it myself, or if anyone has sufficient knowledge or experience with it that could point me in the right direction.


In reply to calling perl functions from javascript by argv

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.