interfacing with Python using Perl

Ask a Question related to PERL Beginners, Design and Development.

  1. #1

    Default interfacing with Python using Perl

    I don't know Python and I really have no desire to learn it, but I do have a decent amount
    of experience with Perl. Is there a module(s) that will let Perl interface with existing
    Python code/modules? Specifically, I want to write a Perl program to use Gentoo Linux's
    Portage API which is written all in Python.

    --
    Andrew Gaffney
    System Administrator
    Skyline Aeronautics, LLC.
    776 North Bell Avenue
    Chesterfield, MO 63005
    636-357-1548

    Andrew Gaffney Guest

  2. Similar Questions and Discussions

    1. Is Perl *that* good? (was: How's ruby compare to it older brother python)
      Would this super perl program of yours can convert the massive amount of perl script to ruby or python? If it could, it would be great so...
    2. using perl interpreter interactively like python?
      I'd like to open perl and execute a few commands interactively in the console. I learn a lot in python this way, and I need to understand some perl...
    3. Embedded Perl or Python (XPost)
      In article <c907a3eba2b531449c8dc7a212285911@news.teranews.com>, Chris <rebel@removethis.rebel.com.au> wrote:
    4. [PYTHON] YAPVRA (Yet Another Python vs. Ruby Article)
      Interesting blog post from a Pythonista on "Linguistic Simplicity," and why Ruby fails to pass muster. ...
    5. PHP, Perl or Python
      Hello Everyone: Here is what may be a very silly question: My hosting provider allows me to run any of the following three CGI languages: PHP,...
  3. #2

    Default Re: interfacing with Python using Perl

    On Jan 23, Andrew Gaffney said:
    >I don't know Python and I really have no desire to learn it, but I do
    >have a decent amount of experience with Perl. Is there a module(s) that
    >will let Perl interface with existing Python code/modules? Specifically,
    >I want to write a Perl program to use Gentoo Linux's Portage API which is
    >written all in Python.
    I believe you can do just that with Inline::Python, on CPAN.

    [url]http://search.cpan.org/author/NEILW/Inline-Python-0.20/Python.pod[/url]

    It's from 2001, though... just so you know...

    --
    Jeff "japhy" Pinyan [email]japhy@pobox.com[/email] [url]http://www.pobox.com/~japhy/[/url]
    RPI Acacia brother #734 [url]http://www.perlmonks.org/[/url] [url]http://www.cpan.org/[/url]
    <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
    [ I'm looking for programming work. If you like my work, let me know. ]

    Jeff 'Japhy' Pinyan Guest

  4. #3

    Default Re: interfacing with Python using Perl

    Jeff 'japhy' Pinyan wrote:
    > On Jan 23, Andrew Gaffney said:
    >
    >
    >>I don't know Python and I really have no desire to learn it, but I do
    >>have a decent amount of experience with Perl. Is there a module(s) that
    >>will let Perl interface with existing Python code/modules? Specifically,
    >>I want to write a Perl program to use Gentoo Linux's Portage API which is
    >>written all in Python.
    >
    >
    > I believe you can do just that with Inline::Python, on CPAN.
    >
    > [url]http://search.cpan.org/author/NEILW/Inline-Python-0.20/Python.pod[/url]
    >
    > It's from 2001, though... just so you know...
    It still looks promising. I'll have to learn a tad of Python, but not much more than the
    syntax for importing functions and classes. Thanks.

    --
    Andrew Gaffney
    System Administrator
    Skyline Aeronautics, LLC.
    776 North Bell Avenue
    Chesterfield, MO 63005
    636-357-1548

    Andrew Gaffney Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139