Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to call Perl Script in Visual Studio with C#
    primarykey
    data
    text
    <p>So currently I have a C#/ASP.net application in Visual Studio. I also have a perl script written by somebody else that I must use within my C#/ASP.NET application. The end goal is to pass a string generated within my C#/ASP.NET code into this perl script (the string is a file path) so that the perl script will run and give its appropriate output.</p> <p>I've looked all over and only found this example:</p> <pre><code>ProcessStartInfo perlStartInfo = new ProcessStartInfo(@"d:\Perl\bin\perl.exe"); perlStartInfo.Arguments = "c:\\word-splitter.pl " + "c:\\a.txt" + " ispell"; perlStartInfo.UseShellExecute = false; perlStartInfo.RedirectStandardOutput = true; perlStartInfo.RedirectStandardError = true; perlStartInfo.CreateNoWindow = false; Process perl = new Process(); perl.StartInfo = perlStartInfo; perl.Start(); perl.WaitForExit(); string output = perl.StandardOutput.ReadToEnd(); </code></pre> <p>Link is here: <a href="http://social.msdn.microsoft.com/Forums/vstudio/en-US/ea9455e1-b254-49e1-99df-41718ea80b5b/how-to-run-perl-scripts-in-c" rel="nofollow">http://social.msdn.microsoft.com/Forums/vstudio/en-US/ea9455e1-b254-49e1-99df-41718ea80b5b/how-to-run-perl-scripts-in-c</a></p> <p>The problem is that whenever I put this code into Visual Studio, it doesn't recognize ProcessStartInfo or any of the other namespaces that this code block uses. Am I missing an assembly?...also what exactly does this block even do? I've tried to search for Nuget packages and assemblies but only found PCRE (Perl Compatible Regular Expressions) which doesn't install because it's not compatible with .NetFramwork V4.5. </p> <p>So my question is: what's the protocol for running a perl script inside of a C#/ASP.NET application?</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload