package calltest; use 5.010000; use strict; use warnings; use calltest::tied; 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 calltest ':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'; require XSLoader; XSLoader::load('calltest', $VERSION); # Preloaded methods go here. sub getValueWrap { return $_[0]->getValue(); } sub getValuePurePerl { my $val = $_[0]->{'value'}; print "from getValuePurePerl value is $val \n"; return $val; } sub new { my $self = {}; bless($self, $_[0]); tie($self->{'value'}, 'calltest::tied', $self); return $self; } 1; __END__