wangtian
asked on
load library
Dear friends,
I meet a question in OO perl:
I have a module named:"LDCIDPORTController ",
and i define constructor as:
#------------------------- ---------- --
# constructor
# -------------------------- ----------
sub new
{
my ($class, $config, $log ) = @_;
my $self = {};
$self->{config} = $config;
$self->{log} = $log;
bless ( $self, $class);
return $self;
}
in my main programming, i load this lib by :
#!/tools/perl/bin/perl -I/export/home/yw5726/expo rt/lduser/ filter/lib :/export/h ome/yw5726 /export/co mmonlib
but when i run it, got the error:
Can't locate object method "new" via package "LDCIDPORTController" at /export/home/yw5726/export /commonlib /Manager.p m line 75
Can someone give me some advice how to debug it?
Thanks ahead.
I meet a question in OO perl:
I have a module named:"LDCIDPORTController
and i define constructor as:
#-------------------------
# constructor
# --------------------------
sub new
{
my ($class, $config, $log ) = @_;
my $self = {};
$self->{config} = $config;
$self->{log} = $log;
bless ( $self, $class);
return $self;
}
in my main programming, i load this lib by :
#!/tools/perl/bin/perl -I/export/home/yw5726/expo
but when i run it, got the error:
Can't locate object method "new" via package "LDCIDPORTController" at /export/home/yw5726/export
Can someone give me some advice how to debug it?
Thanks ahead.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.