473,791 Members | 3,015 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling Perl from C#.

Hello group,

I had a COM dll in VC 6.0 which my Perl 5.8 modules used to call.
With the .Net invent I would like to wrap up my COM functionality into C#.
I wanted to know how can my Perl modules call the C# exe?

Thanks,
Dave

P.S : AFAIK, Perl is also interoperable with the .Net languages.
Nov 15 '05 #1
6 10172
Hello Dave,

Check out Perl.Net from active state that should allow you to call C#
from Perl

http://www.activestate.com/Corporate...arch.html?_x=1

regards,
Abhishek.

Dave R wrote:
Hello group,

I had a COM dll in VC 6.0 which my Perl 5.8 modules used to call.
With the .Net invent I would like to wrap up my COM functionality into C#.
I wanted to know how can my Perl modules call the C# exe?

Thanks,
Dave

P.S : AFAIK, Perl is also interoperable with the .Net languages.


Nov 15 '05 #2
Hi

Python for .NET is a near-seamless integration of the
CPython runtime with the .NET Common Language Runtime
(CLR). It lets you script and build applications in
Python, using CLR services and components written in any
language that targets the CLR (C#, Managed C++, VB.NET,
etc.).

for further details check the following link
http://www.zope.org/Members/Brian/PythonNet

Ravikanth[MVP]

-----Original Message-----
Hello group,

I had a COM dll in VC 6.0 which my Perl 5.8 modules used to call.With the .Net invent I would like to wrap up my COM functionality into C#.I wanted to know how can my Perl modules call the C# exe?

Thanks,
Dave

P.S : AFAIK, Perl is also interoperable with the .Net languages.

.

Nov 15 '05 #3
Hi Dave,

You can use COM Interop and expose your .NET Assemblies as COM objects.
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconexposingne tframeworkcompo nentstocom.asp? frame=true
Then, you can use those object from perl.
--
DaigoH, C# Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

--------------------
From: "Dave R" <dr**@hotmail.c om>
Subject: Calling Perl from C#.
Date: Wed, 24 Sep 2003 14:01:43 +0530
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <OR************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
NNTP-Posting-Host: 203.199.147.2
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1869 85
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp

Hello group,

I had a COM dll in VC 6.0 which my Perl 5.8 modules used to call.
With the .Net invent I would like to wrap up my COM functionality into C#.
I wanted to know how can my Perl modules call the C# exe?

Thanks,
Dave

P.S : AFAIK, Perl is also interoperable with the .Net languages.


Nov 15 '05 #4
Hi Dave,

You can use COM Interop and expose your .NET Assemblies as COM objects.
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconexposingne tframeworkcompo nentstocom.asp? frame=true
Then, you can use those object from perl.
--
DaigoH, C# Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

--------------------
From: "Dave R" <dr**@hotmail.c om>
Subject: Calling Perl from C#.
Date: Wed, 24 Sep 2003 14:01:43 +0530
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <OR************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
NNTP-Posting-Host: 203.199.147.2
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1869 85
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp

Hello group,

I had a COM dll in VC 6.0 which my Perl 5.8 modules used to call.
With the .Net invent I would like to wrap up my COM functionality into C#.
I wanted to know how can my Perl modules call the C# exe?

Thanks,
Dave

P.S : AFAIK, Perl is also interoperable with the .Net languages.


Nov 15 '05 #5
Thank you all for your useful replies.

--
Best regards,
Dave
Nov 15 '05 #6
Thank you all for your useful replies.

--
Best regards,
Dave
Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2179
by: Mike Bobbitt | last post by:
I've recently decided to switch from compiled Apache/PHP to RPM's of both and I'm having a problem I can't seem to solve. I have a Perl script called php_include.cgi that parses a PHP file for inclusion. It does this by running "php -f " but unfortunately it no longer works with the RPM: ---------- Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This
2
4753
by: Shailan | last post by:
Hi Im having trouble with the following code that seems to be behave differently when called from the browser as opposed to the command line. The calling script is a cgi that forks, with the child trying to call another cgi script and pass arguments to it. It works fine from the command line, and calls the required script and passes the arguments correctly. However, when it is run on the browser, it calls the script but does not pass...
6
15901
by: Richard Trahan | last post by:
I want a js function to call a Perl script residing on a server. The Perl script will return a string, to be used by the js. Pseudo code: <script> stringvar = perlfunc_on_server(stringarg) document.write(stringvar) </script> Can stringvar above be a url?
3
4406
by: Shiraz | last post by:
Updated to the latest version of DBD-mysql using perl -MCPAN -e "install DBD-mysql" and now the calling mysql function r2() within perl work > $SQL_Text = "select r2() from dual " ; > $sth=$dbh->prepare($SQL_Text); > $sth->execute(); > while ( ($tt) = $sth->fetchrow_array( ) ) { print $tt; } for reference here is the mysql Funtion
3
5469
by: David Bear | last post by:
I have a hash function written by another organization that I need to use. It is implemented in perl. I've been attempting to decode what they are doing in their hash function and it is taking way too long. I've identified two functions in a perl module that I would like to 'call' from a python program. I found the following: http://www.annocpan.org/~GAAS/pyperl-1.0/perlmodule.pod and wondered if anyone had any comments. This thing...
4
11227
by: nidhikhandelwal | last post by:
I am calling a unix shell script from a perl script by using the following system command: system("./readfile_new.sh"); but it seems the unix script readfile_new.sh is not being called. Can someone let me know how to call this script in the perl file/
0
1523
by: brakesh | last post by:
Hi, I am trying to call a perl program (that connects a webserver database) from a php program via a webbrowser. For example : http://development.noaa.gov/test_exec.php?dataid=8313. The test_exec.php script that calls the perl program is as follows: <?php error_log("inside test_exec \n"); $dataid = $_GET; $cmd = "/usr/bin/perl /........../db_connect_psql_RS3.pl ". $dataid; error_log("dataid = $dataid\n"); exec($cmd); ?>
5
7003
by: rahulthathoo | last post by:
Hi. I need to develop a web based application which uses php for the front end and statistical manipulations in perl - my question is - how do i call a perl script from php - i guess the answer is gonna be exec. I cant seem to understand how can i pass variables from the PHP script to the Perl script and vice versa using exec? Is there a better way to go about it? Rahul
5
8661
by: davidr262 | last post by:
I am new to perl and need help with the following. In perl we are calling sqlplus with a PLSQL Script. In order to do this in PERL we had to do a system call. How do we return a error code from the PLSQL script back to the perl script?
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10155
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9995
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.