in reply to Microsoft Word and Perl scripting

ActiveState's Perl has a PerlScript component that allows Perl to be used in place of VBScript or JScript. The documentation with it discusses how to use it.

It's kind of unsafe to have on your system though. Imagine a web page with PerlScript that deleted your files? PerlScript (and VBScript or JScript) doesn't run in the "sandbox" that Java supposedly does.

Replies are listed 'Best First'.
Re: Re: Microsoft Word and Perl scripting
by John M. Dlugosz (Monsignor) on Jul 27, 2001 at 10:23 UTC
    Yes, and I've written ASP with Perl. But how do I put such a program inside the Word document, like the supplied BASIC can do?

      Check the ActiveState Perl docs, and maybe do some research on the <acronym title="Microsoft Developer Network">MSDN</acronym> web site at http://msdn.microsoft.com/. Windows allows scripting engines to be plugged in, so one can use VBScript or JScript (Microsoft's JavaScript) in various applications. You should be able to do the same with Perl.

      Caveat: I've never done this, so I can't explain how to do it. But I believe it should be possible.