Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to access Python member functions from perl

by Anonymous Monk
on Jan 30, 2013 at 06:47 UTC ( #1015979=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ cat fibo.py
    # Fibonacci numbers module
    ...
            result.append(b)
            a, b = b, a+b
        return result
    
  2. or download this
    $ cat runfib.py
    #!/usr/bin/python
    ...
    fibo.fib(1000)
    print "\n"
    print fibo.fib2(100)
    
  3. or download this
    $ cat runfib.pl
    #!/usr/bin/perl
    print `./runfib.py`;
    
  4. or download this
    $ ./runfib.pl
    1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987
    
    [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015979]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (13)
As of 2015-07-31 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (277 votes), past polls