in reply to OOP and Methods Question
but, if you want to have an object, which inherits from YourModule.pm, you can try something as:package MainModule; use YourModule (); my $ret = YourModule::yourFunction();
and all methods from YourModule will be accessible through $instance.package MyObject; use base 'YourModule'; sub new { ...} my $instance = MyObject->new(); my $ret = $instance->yourFunction();
|
|---|