none
Integration Scritpting Language and C# Language RRS feed

  • Question

  • Hi EveryOne,

    • Is it possible to integrate PERL and C# language in .Net Framework 3.5 ??.
    • Is their is .net version of PERL available from Microsoft ?
    • The idea is use PERL language in C# code.
    • Is it possible. 

    Thanks in advance.

    Warm Regards,
    ProgrammerLive - PL
    Helping People To Solve Technical Problems
    Monday, October 26, 2009 4:45 PM

Answers

  • You should be able to do this via ActiveState's Perl Dev Kit.

    However, be aware that .NET 4 will make it easy to mix .NET code with scripting/automation via Python and Ruby via IronPython and IronRuby (but not PERL).  There is no Microsoft Perl implementation, but they are supporting Python and Ruby via the Dynamic Language Runtime in .NET 4.
    Reed Copsey, Jr. - http://reedcopsey.com
    • Marked as answer by PROGRAMMERLIVE Tuesday, October 27, 2009 3:34 AM
    Monday, October 26, 2009 7:52 PM
  • Hi,

    Yes you can use , there are perl .Net compilers which you can use.

    The Perl code is not compiled into .Net IL (since that was too slow), but you can create a DLL that (from the outside) will look just like any other .NET dll and you will be able to use .Net stuff from Perl and Perl stuff from .

    To embed a Perl interpreter in a C# program, add a reference to the COM object "Microsoft Script Control 1.0" and write code

    Hope this helps

    Regards
    azhar

    • Marked as answer by PROGRAMMERLIVE Tuesday, October 27, 2009 9:45 AM
    Tuesday, October 27, 2009 3:57 AM

All replies

  • You should be able to do this via ActiveState's Perl Dev Kit.

    However, be aware that .NET 4 will make it easy to mix .NET code with scripting/automation via Python and Ruby via IronPython and IronRuby (but not PERL).  There is no Microsoft Perl implementation, but they are supporting Python and Ruby via the Dynamic Language Runtime in .NET 4.
    Reed Copsey, Jr. - http://reedcopsey.com
    • Marked as answer by PROGRAMMERLIVE Tuesday, October 27, 2009 3:34 AM
    Monday, October 26, 2009 7:52 PM
  • Hi,

    Yes you can use , there are perl .Net compilers which you can use.

    The Perl code is not compiled into .Net IL (since that was too slow), but you can create a DLL that (from the outside) will look just like any other .NET dll and you will be able to use .Net stuff from Perl and Perl stuff from .

    To embed a Perl interpreter in a C# program, add a reference to the COM object "Microsoft Script Control 1.0" and write code

    Hope this helps

    Regards
    azhar

    • Marked as answer by PROGRAMMERLIVE Tuesday, October 27, 2009 9:45 AM
    Tuesday, October 27, 2009 3:57 AM