- or download this
package DerivedClass;
use strict;
...
sub new { return bless {}; }
1;
- or download this
package BaseClass;
sub blah { return "blah"; }
1;
- or download this
package ImportClass;
use strict;
...
}
}
1;
- or download this
#!/usr/bin/perl
use DerivedClass;
my $object = DerivedClass->new();
print $object->blah() . "\n";
- or download this
Can't locate object method "blah" via package "ImportClass" at ImportC
+lass.pm line 10.
- or download this
Can't call NEXT::blah from ImportClass::__ANON__ at ImportClass.pm lin
+e 10