Is it possible to extend a perl module from withing the calling script?
Something like that:
#!/usr/bin/perl
use strict;
use Some::Module;
Some::Module::func = sub {
my $self = shift;
# ...
}
my $obj = new Some::Module;
$obj->func();
Thanks a lot!