PerlNet & DateTime.pm

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,413
Latest member
KeiraLight

Latest Threads

Top