Help for this page

Select Code to Download


  1. or download this
    MSScriptControl.ScriptControlClass Interpreter;
    Interpreter = new MSScriptControl.ScriptControlClass();
    Interpreter.Language = @"PerlScript";
    string Program = @"reverse 'abcde'";
    string Results = (string)Interpreter.Eval(Program);
    
  2. or download this
    use Win32::OLE;
    my $Interpreter;
    ...
    $Interpreter->{Language} = 'PerlScript';
    my $Program = "reverse 'abcde'";
    my $Results = $Interpreter->Eval($Program);