README
1INTRODUCTION:
2
3Inline::Python -- Write Perl subs and classes in Python.
4
5Inline::Python lets you write Perl subroutines and classes in
6Python. You don't have to use any funky techniques for sharing most
7types of data between the two languages, either. Inline::Python comes
8with its own data translation service. It converts any Python structures
9it knows about into Perl structures, and vice versa.
10
11Example:
12
13 use Inline Python => <<'END';
14 def JAxH(x):
15 return "Just Another %s Hacker" % x
16 END
17
18 print JAxH('Inline'), "\n";
19
20When run, this complete program prints:
21
22 Just Another Inline Hacker.
23
24The almost-one-line version is:
25
26 perl -le 'use Inline Python=>q{def JAxH(x):return"Just Another %s Hacker"%x};print JAxH+Inline'
27
28-------------------------------------------------------------------------------
29INSTALLATION:
30
31This module requires Inline.pm version 0.46 or higher to be installed. In
32addition, you need Python 2.5 or greater installed. Python 2.6, Python 3.2 or greater
33is recommended.
34
35Python has to be configured with --enable-shared. Linux distribution packages
36should be fine, but keep it in mind if you compile Python yourself.
37
38To install Inline::Python do this:
39
40perl Makefile.PL
41make
42make test
43make install
44
45(On ActivePerl for MSWin32, use nmake instead of make.)
46
47You have to 'make install' before you can run it successfully.
48
49-------------------------------------------------------------------------------
50INFORMATION:
51
52- For more information on Inline::Python see 'perldoc Inline::Python'.
53- For information about Inline.pm, see 'perldoc Inline'.
54- For information on using Python or the Python C API, visit http://www.python.org.
55
56The Inline::Python mailing list is inline@perl.org. Send mail to
57inline-subscribe@perl.org to subscribe.
58
59Please send questions and comments to "Stefan Seifert" <NINE@cpan.org>
60
61Copyright (c) 2000, Neil Watkiss. All Rights Reserved. This module is free software.
62It may be used, redistributed and/or modified under the same terms as Perl itself.
63
64(see http://www.perl.com/perl/misc/Artistic.html)
65
66