Cache-SimpleDir
view release on metacpan or search on metacpan
lib/Cache/SimpleDir.pm view on Meta::CPAN
bless $self, $class
}
# Called automatically when a subroutine called functional instead of OO
sub __NOT_AN_OBJECT
{
my ($class,$method) = shift =~/^(.*?)::(.*)/;
my $user = $ENV{USERNAME} // [getpwuid $>]->[0];
my $args = join ', ', @_;
print STDOUT<<STOP;
Hello $user,
$class\::$method method did not called as an object, change your code similar to
use $class;
my \$obj = $class->new( ... );
\$obj->$method($args);
( run in 0.359 second using v1.01-cache-2.11-cpan-8d75d55dd25 )