A
Adalid Claure
Hello,
I am using PerlNet for a project and am attempting to use Perl's
DateTime module, but I am having problems.
Perl
--------------------
package Foo;
use strict;
use DateTime;
=for interface
[interface: pure]
static Foo();
=cut
sub new {
my($package) = @_;
return bless {}, $package;
}
1;
in the C#
------------------
Foo foovar = new Foo(); // throws an exception
This will compile just fine. However when I try to use it from C#, I
get an exception: "An unhandled exception of type
'System.NullReferenceException' occurred in perlrt.dll"
This is the only module I've found (so far?) causing this problem. Or
am I doing something wrong and can't see it?
I am using PerlNet for a project and am attempting to use Perl's
DateTime module, but I am having problems.
Perl
--------------------
package Foo;
use strict;
use DateTime;
=for interface
[interface: pure]
static Foo();
=cut
sub new {
my($package) = @_;
return bless {}, $package;
}
1;
in the C#
------------------
Foo foovar = new Foo(); // throws an exception
This will compile just fine. However when I try to use it from C#, I
get an exception: "An unhandled exception of type
'System.NullReferenceException' occurred in perlrt.dll"
This is the only module I've found (so far?) causing this problem. Or
am I doing something wrong and can't see it?