I am trying to call Python module from Perl.
I created a module in Python which provides two functionalities (Connect and disconnect the PPPOE).
While it will be mostly used from within Python, there is a good fraction of legacy idea,
which will be calling it from Perl.
Google suggest me to do:
1)Provide the functionalities as command line utilities and make system calls
2)Inline::Python
I failed to install Inline module in perl 5.6.1 version. So I tried to use the first option.
For disconnecting the PPPOE, I need the return value from the Connect function.
With this approach is it poossible to get return value from one function to command line? If so please let me know how to do it.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|