embedding C and Python in Perl
Skip Montanaro
skip at mojam.com
Fri Feb 9 13:22:29 EST 2001
Steve> Wow, this aids clarity SO much I think I'll retain my sanity by
Steve> staying miles away from it, thank you very much. Yet another
Steve> example of "because we can" design.
OTOH, it makes it easy (assuming this wasn't all a big joke) to infest Perl
code with Python, which could be particularly useful if you're stuck with
Perl on some project.
use inline Python;
main;
__END__
__PYTHON__
def main():
import myprogram
myprogram.main()
;-)
--
Skip Montanaro (skip at mojam.com)
Support Mojam & Musi-Cal: http://www.musi-cal.com/sponsor.shtml
(847)971-7098
More information about the Python-list
mailing list