Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How to access Python member functions from perl

by Anonymous Monk
on Jan 30, 2013 at 06:47 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1015979]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-24 18:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found