&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& package NewModule; use 5.008005; use strict; use warnings; use lib '/usr/lib/perl5/vendor_perl/5.8.0'; use lib '/users/nirf/perlTrials/cpanModulesInstallation/lib/perl5/site_perl/5.8.0'; use lib '/users/nirf/perlTrials/cpanModulesInstallationInline/lib/perl5/site_perl/5.8.5'; use Inline CPP => Config => INC => '-l/users/nirf/perlTrials/inlineExample'; use Inline CPP => Config => MYEXTLIB => '/users/nirf/perlTrials/inlineExample/libmain.so'; use Inline CPP => 'END'; use Inline CPP => Config => ENABLE => STD_IOSTREAM; require Exporter; our @ISA = qw(Exporter); # Items to export into callers namespace by default. Note: do not export # names by default without a very good reason. Use EXPORT_OK instead. # Do not simply export all your public functions/methods/constants. # This allows declaration use NewModule ':all'; # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK # will save memory. our %EXPORT_TAGS = ( 'all' => [ qw( ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our @EXPORT = qw( ); our $VERSION = '0.01'; __END__ __CPP__ #include "main.h" char GlobalArr[13] = {'G','l','o','b','a','l',' ','a','r','r','a','y','\0',}; MyClass myGlobalInstance(GlobalArr) ; int add(int x, int y) { char arr[7]={'i','n',' ','a','d','d','\0'}; MyClass mc(arr); myGlobalInstance.wow(); return x + y; } 1; # Below is stub documentation for your module. You'd better edit it! =head1 NAME NewModule - Perl extension for blah blah blah =head1 SYNOPSIS use NewModule; blah blah blah =head1 DESCRIPTION Stub documentation for NewModule, created by h2xs. It looks like the author of the extension was negligent enough to leave the stub unedited. Blah blah blah. =head2 EXPORT None by default. =head1 SEE ALSO Mention other useful documentation such as the documentation of related modules or operating system documentation (such as man pages in UNIX), or any relevant external documentation such as RFCs or standards. If you have a mailing list set up for your module, mention it here. If you have a web site set up for your module, mention it here. =head1 AUTHOR Nir Frenkel, Enirf@localdomainE =head1 COPYRIGHT AND LICENSE Copyright (C) 2008 by Nir Frenkel This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available. =cut &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&