Inline::Wrapper

Convenient module wrapper/loader routines for Inline.pm
Download

Inline::Wrapper Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jason McManus
  • Publisher web site:
  • http://search.cpan.org/~infidel/

Inline::Wrapper Tags


Inline::Wrapper Description

Convenient module wrapper/loader routines for Inline.pm Inline::Wrapper is a Perl module that provides wrapper routines around Inline to make embedding functions from another language into a Perl application much more convenient.Instead of having to include the external code in a Perl source file after the __END__ directive, Inline::Wrapper allows you to have separate, individually-configurable module repositories to more easily manage all of your external application code.SYNOPSISsample.pl: use Inline::Wrapper; my $inline = Inline::Wrapper->new( language => 'C', base_dir => '.', ); my @symbols = $inline->load( 'answer' ); my @retvals = $inline->run( 'answer', 'the_answer', 3, 56 ); print "The answer is: ", $retvals, " "; exit(0);answer.c: int the_answer( int arg1, int arg2 ) { return ( arg1 * arg2 ) >> 2; } Here are some key features of "Inline::Wrapper": · Support for all languages supported by Inline. · A single, unified interface for loading and running module functions. · Loading of files containing pure source code, only in their respective languages, so you can isolate maintenance and management of these modules. · Individually-configurable module directories. · Automatic, run-time module reloading upon file modification time detection. · No more namespace pollution. All module symbols are loaded into their own individual, private namespaces, so they won't collide with your code or each other. Requirements: · Perl


Inline::Wrapper Related Software