Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PYTHON WORKING WITH PERL ??

7 views
Skip to first unread message

Blubaugh, David A.

unread,
Sep 29, 2008, 1:16:14 PM9/29/08
to pytho...@python.org
To All,


I was wondering if it was possible to have a situation where a
programming project would utilized BOTH python and perl? Such as
utilizing python for internet programming and then utilize perl for text
processing and systems programming? Is this even feasible???


Thanks,


David Blubaugh

This e-mail transmission contains information that is confidential and may be
privileged. It is intended only for the addressee(s) named above. If you receive
this e-mail in error, please do not read, copy or disseminate it in any manner.
If you are not the intended recipient, any disclosure, copying, distribution or
use of the contents of this information is prohibited. Please reply to the
message immediately by informing the sender that the message was misdirected.
After replying, please erase it from your computer system. Your assistance in
correcting this error is appreciated.

D'Arcy J.M. Cain

unread,
Sep 29, 2008, 1:31:53 PM9/29/08
to Blubaugh, David A., pytho...@python.org
On Mon, 29 Sep 2008 13:16:14 -0400
"Blubaugh, David A." <dblu...@belcan.com> wrote:
> I was wondering if it was possible to have a situation where a
> programming project would utilized BOTH python and perl? Such as
> utilizing python for internet programming and then utilize perl for text
> processing and systems programming? Is this even feasible???

I don't see why not but I also question if it is a good idea. Once you
have all your objects and low level methods written in Python it just
makes sense to re-use them rather than trying to duplicate the
functionality in another language.

Of course, sometimes we don't have control over our entire environment
so yes, you can mix them if you have to.

--
D'Arcy J.M. Cain <da...@druid.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.

Steve Holden

unread,
Sep 29, 2008, 1:38:02 PM9/29/08
to pytho...@python.org
Blubaugh, David A. wrote:
> To All,

>
>
> I was wondering if it was possible to have a situation where a
> programming project would utilized BOTH python and perl? Such as
> utilizing python for internet programming and then utilize perl for text
> processing and systems programming? Is this even feasible???
>
>
> Thanks,
>
So sorry to hear Google isn't available from your network ;-)

http://search.cpan.org/~gaas/pyperl-1.0/perlmodule.pod

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

Blubaugh, David A.

unread,
Sep 29, 2008, 3:44:10 PM9/29/08
to D'Arcy J.M. Cain, pytho...@python.org
Sir,


You are absolutely correct. I was praying to G_d I did not have to
slaughter my project's source code in this manner. However, like life
itself, I was given legacy source code (i.e. someone else errors to fix)
in Perl. However, I have just found out that there is a way to import
the Perl interpreter within Python!!! I now believe I can utilize
python as the main platform to develop the project upon !!


Thanks,

David


-----Original Message-----
From: D'Arcy J.M. Cain [mailto:da...@druid.net]
Sent: Monday, September 29, 2008 1:32 PM
To: Blubaugh, David A.
Cc: pytho...@python.org
Subject: Re: PYTHON WORKING WITH PERL ??

On Mon, 29 Sep 2008 13:16:14 -0400
"Blubaugh, David A." <dblu...@belcan.com> wrote:

> I was wondering if it was possible to have a situation where a
> programming project would utilized BOTH python and perl? Such as
> utilizing python for internet programming and then utilize perl for
> text processing and systems programming? Is this even feasible???

I don't see why not but I also question if it is a good idea. Once you


have all your objects and low level methods written in Python it just
makes sense to re-use them rather than trying to duplicate the
functionality in another language.

Of course, sometimes we don't have control over our entire environment
so yes, you can mix them if you have to.

--
D'Arcy J.M. Cain <da...@druid.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.

This e-mail transmission contains information that is confidential and may be

Blubaugh, David A.

unread,
Sep 29, 2008, 3:45:02 PM9/29/08
to Steve Holden, pytho...@python.org
Thank You

Steve!!!


-----Original Message-----
From: Steve Holden [mailto:st...@holdenweb.com]
Sent: Monday, September 29, 2008 1:38 PM
To: pytho...@python.org
Subject: Re: PYTHON WORKING WITH PERL ??

Blubaugh, David A. wrote:
> To All,
>
>

> I was wondering if it was possible to have a situation where a
> programming project would utilized BOTH python and perl? Such as
> utilizing python for internet programming and then utilize perl for
> text processing and systems programming? Is this even feasible???
>
>

> Thanks,
>
So sorry to hear Google isn't available from your network ;-)

http://search.cpan.org/~gaas/pyperl-1.0/perlmodule.pod

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

This e-mail transmission contains information that is confidential and may be

namekuseijin

unread,
Sep 29, 2008, 11:48:22 PM9/29/08
to
On 29 set, 14:16, "Blubaugh, David A." <dbluba...@belcan.com> wrote:
> To All,
>
> I was wondering if it was possible to have a situation where a
> programming project would utilized BOTH python and perl?  Such as
> utilizing python for internet programming and then utilize perl for text
> processing and systems programming?  Is this even feasible???

Python + Perl is called Ruby. ;)

Sean DiZazzo

unread,
Sep 30, 2008, 12:44:19 AM9/30/08
to
On Sep 29, 12:44 pm, "Blubaugh, David A." <dbluba...@belcan.com>
wrote:

> Sir,
>
> You are absolutely correct.  I was praying to G_d I did not have to
> slaughter my project's source code in this manner.  However, like life
> itself, I was given legacy source code (i.e. someone else errors to fix)
> in Perl.  However, I have just found out that there is a way to import
> the Perl interpreter within Python!!!  I now believe I can utilize
> python as the main platform to develop the project upon !!  
>
> Thanks,
>
> David
>
> -----Original Message-----
> From: D'Arcy J.M. Cain [mailto:da...@druid.net]
> Sent: Monday, September 29, 2008 1:32 PM
> To: Blubaugh, David A.
>
> Cc: python-l...@python.org

> Subject: Re: PYTHON WORKING WITH PERL ??
>
> On Mon, 29 Sep 2008 13:16:14 -0400
> "Blubaugh, David A." <dbluba...@belcan.com> wrote:
> > I was wondering if it was possible to have a situation where a
> > programming project would utilized BOTH python and perl?  Such as
> > utilizing python for internet programming and then utilize perl for
> > text processing and systems programming?  Is this even feasible???
>
> I don't see why not but I also question if it is a good idea.  Once you
> have all your objects and low level methods written in Python it just
> makes sense to re-use them rather than trying to duplicate the
> functionality in another language.
>
> Of course, sometimes we don't have control over our entire environment
> so yes, you can mix them if you have to.
>


Rewrite everything in python. Save yourself now...while you still
can.

~Sean

Pat

unread,
Oct 17, 2008, 11:00:42 AM10/17/08
to

Trust me. Sean is absolutely correct. I'm currently in the process of
converting a large Perl project to Python (and learning Python at the
same time) and the improvement in code is incredible. After you learn
Python, you'll come to despise Perl.

J Kenneth King

unread,
Oct 16, 2008, 11:33:06 AM10/16/08
to
Pat <P...@junk.net> writes:

Depends on the person -- I still love Perl, but program in Python
every day at work.

Python is great, but don't be mistaken: it's not the one language to
rule them all. No language is (except maybe Lisp).

But yay for converting a project to python. :)

Diez B. Roggisch

unread,
Oct 16, 2008, 11:34:05 AM10/16/08
to

> Trust me. Sean is absolutely correct. I'm currently in the process of
> converting a large Perl project to Python (and learning Python at the
> same time) and the improvement in code is incredible. After you learn
> Python, you'll come to despise Perl.

+1 QOTW

Diez

Joshua Kugler

unread,
Oct 16, 2008, 4:34:53 PM10/16/08
to pytho...@python.org
Pat wrote:
>> Rewrite everything in python. Save yourself now...while you still
>> can.
>>
>> ~Sean
>
> Trust me. Sean is absolutely correct. I'm currently in the process of
> converting a large Perl project to Python (and learning Python at the
> same time) and the improvement in code is incredible. After you learn
> Python, you'll come to despise Perl.

I'm not a Python fan-boy, but I'm going to have to agree with Sean too. I
had been using Perl on-and-off for some 10 years, when I finally had to
write a 500-ish line script in Perl for some data processing. It got messy
in a hurry. Is this a hash? Is it a reference to a hash? Is it a reference
to a hash of array references? Gaaah! I rewrote it in Python, and it was
so much easier to keep all my data structures straight.

j

J Kenneth King

unread,
Oct 16, 2008, 5:39:12 PM10/16/08
to
Joshua Kugler <jos...@joshuakugler.com> writes:

Perl just gives you a lot of rope.

You can do a lot of neat things with rope. ;)

sr...@ferg.org

unread,
Oct 21, 2008, 12:09:15 PM10/21/08
to
>  http://search.cpan.org/~gaas/pyperl-1.0/perlmodule.pod

A friend of mine who is a Perl user pointed out that although the
"perl" module exists:

I think it was largely experimental. As you can see from its release
page:
http://search.cpan.org/~gaas/pyperl-1.0/
it was created in 2001 and hasn't been updated, and it has mostly
failed the automated tests.

-- Steve Ferg

Nicola Larosa (tekNico)

unread,
Nov 1, 2008, 11:15:11 AM11/1/08
to
Pat <P...@junk.net> wrote:
> After you learn Python, you'll come to despise Perl.

Some of us came to despise Perl *before* learning Python (third to
last paragraph):

A journey through languages
http://www.teknico.net/devel/journey/index.en.html

--
Nicola Larosa - http://www.tekNico.net/

Look, it's a "connect-the-dots" game... when all the dots are
connected, the word *Y.I.K.E.S.* appears. - Jon Husband, June 2008

Shawn Milochik

unread,
Nov 2, 2008, 1:50:46 AM11/2/08
to Python List
On Sat, Nov 1, 2008 at 11:15 AM, Nicola Larosa (tekNico)
<nicola...@gmail.com> wrote:
> Pat <P...@junk.net> wrote:
>> After you learn Python, you'll come to despise Perl.
>
> Some of us came to despise Perl *before* learning Python (third to
> last paragraph):

For what it's worth, I thought I'd throw in my 2¢. I used to like Perl
a whole lot. I was never a Perl Monk, or a guru of any kind. But Perl
is powerful and convenient. In fact, I still use Perl one-liners all
the time. For any quickie one-liner, especially involving regular
expressions, it's unparalleled as far as I know. But once I started
using Python, I immediately preferred it to Perl. Now, I'm useless in
Perl. To even write a simple script, I end up having to hit up Google
for the syntax. Things don't make sense, and it's awkward for me to
put my thoughts down in Perl code. Python, on the other hand, almost
always does what I was thinking of when I wrote it. Don't get me wrong
-- I still write bad code. But most of the issues are bugs with the
logic, when I don't do enough thinking before typing (which Python
makes so easy). I rarely struggle with any syntax issues at all.

The reason I think Python blows Perl away is that it makes it much
easier to read code after a period of time. Even if it's not your
code. With Perl, it's too easy to write code that you have to decipher
even after your lunch break. For more thoughts on these things from
someone much, much more qualified than I, check out this fantastic
article: http://www.linuxjournal.com/article/3882

Craig Allen

unread,
Nov 3, 2008, 6:46:31 PM11/3/08
to
> article:http://www.linuxjournal.com/article/3882

interesting read, thanks

Craig Allen

unread,
Nov 3, 2008, 6:54:04 PM11/3/08
to
> article:http://www.linuxjournal.com/article/3882

even if it is by Eric Raymond

0 new messages