in reply to Perl in C#

This is really more of a C# question. It's possible to embed a perl interpreter in other code, but more likely what you want is to just shell out to perl, or use an equivalent for Inline (if C# has such a thing). I can tell you how to shell out to other languages from Perl, or just embed other languages Inline in Perl code, but if you need to know how to shell out to other languages (e.g., Perl) from C#, or embed other languages (e.g., Perl) in C# code, then I suspect you're going to have to ask a C# programmer.