Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 25th, 2004, 02:15 PM
Tkinter_Bell Tkinter_Bell is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Isle of dogs
Posts: 68 Tkinter_Bell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Interfacing Python with Perl

I have some modules implemented in perl but my project is in python. What can I do so I can use those modules. Plus perl has some nice text manipulation featues I like.

Reply With Quote
  #2  
Old October 25th, 2004, 05:30 PM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,536 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 10 m 32 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Your not in an easy position. Ideally I would just rewrite the perl modules in Python, so naturally that's what I would suggest. There was also a project designed to convert Python to perl a while ago, though I can't find it now.

There is another way of course, use Pythons & perls SOAP modules to create a web-service from the parts of the too languages – .NET works like this apparently.

You might want to do a proper search on google on these subjects,

Mark.
__________________
programming language development: www.netytan.com Hula


Reply With Quote
  #3  
Old October 25th, 2004, 05:38 PM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,536 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 10 m 32 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
You might find this interesting: http://www.crazy-compilers.com/bridgekeeper/

Reply With Quote
  #4  
Old October 26th, 2004, 07:34 AM
Tkinter_Bell Tkinter_Bell is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Isle of dogs
Posts: 68 Tkinter_Bell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Thank,s

Quote:
Originally Posted by Tkinter_Bell
I have some modules implemented in perl but my project is in python. What can I do so I can use those modules. Plus perl has some nice text manipulation featues I like.


Thanks for your help, I think that it is best that I stick with Python. It seems to me that the best features of perl are not would be nice but it is not worth the hasle. But I am surprised that Python and Perl are not bed buddies just like VB.Net and C# are.

Reply With Quote
  #5  
Old October 26th, 2004, 08:59 AM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 8
Send a message via MSN to Grim Archon
Quote:
But I am surprised that Python and Perl are not bed buddies just like VB.Net and C# are.

VB.Net and C# are only buddies because they share a common core (the .NET framework with it's intermediate run time language) - it also helps that they were developed by just one company. They can only make use of code written in other languages within the context of that framework.

In contrast Perl and Python are totally seperate developments and there is no over arching group that dictates their interoperation.
__________________
*** Experimental Python Markup CGI V2 ***

Reply With Quote
  #6  
Old October 26th, 2004, 09:05 AM
sfb sfb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 447 sfb User rank is Corporal (100 - 500 Reputation Level)sfb User rank is Corporal (100 - 500 Reputation Level)sfb User rank is Corporal (100 - 500 Reputation Level)sfb User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 1 h 43 m 45 sec
Reputation Power: 9
Quote:
Plus perl has some nice text manipulation featues I like.


As well as the standard string operations, python has regular expressions support (import re), also strings being lists of characters, list comprehensions, itertools, generators and other modules support many more options for string manipulation and verification.

Perhaps if you gave some examples we could come up with some Python ideas to do the same things?

Reply With Quote
  #7  
Old October 26th, 2004, 01:41 PM
djjhouse djjhouse is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Colorado, USA
Posts: 68 djjhouse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 15 h 7 m
Reputation Power: 5
Try pyPerl

You can try pyPerl-
I made an attempt, but had a hard time. You may have better luck

PyPerl at python.org

Reply With Quote
  #8  
Old October 27th, 2004, 03:52 PM
Tkinter_Bell Tkinter_Bell is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Isle of dogs
Posts: 68 Tkinter_Bell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Quote:
Originally Posted by sfb
As well as the standard string operations, python has regular expressions support (import re), also strings being lists of characters, list comprehensions, itertools, generators and other modules support many more options for string manipulation and verification.

Perhaps if you gave some examples we could come up with some Python ideas to do the same things?


Thanks but no thanks, It would have been nice to use Perl because it is less verbose then Python or any other language while handling regular expressions. Regex is a part of Perls syntax.

I will stick to python to save any hasle

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Interfacing Python with Perl


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT