in reply to Re: how to export a method
in thread how to export a method
I also got the message: Can't locate object method "rp" via package "PDL" at test_pdl6.pl line 27.package PDL::CV; require Exporter; our @ISA = qw(Exporter); our @EXPORT = qw(rp); sub rp { my ( $self, $input ) = @_; $self .= $input->reshape($self->dims); return $self; } sub new { my $class = shift; my $self = { _input => shift, }; bless $self, $class; return $self; } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to export a method
by wanna_code_perl (Friar) on Oct 22, 2019 at 03:48 UTC | |
by toothedsword (Sexton) on Oct 22, 2019 at 05:45 UTC | |
by AnomalousMonk (Archbishop) on Oct 22, 2019 at 06:36 UTC | |
by toothedsword (Sexton) on Oct 22, 2019 at 15:06 UTC | |
by wanna_code_perl (Friar) on Oct 22, 2019 at 05:56 UTC | |
by toothedsword (Sexton) on Oct 22, 2019 at 06:05 UTC |