in reply to Redispatching AUTOLOAD for failure
It's not exactly the same as you want, though (but it also happens at runtime).sub AUTOLOAD { (my $meth = our $AUTOLOAD) =~ s/([^:]+)$/$1/; if ( $meth =~ /^is_/ ) { return; } else { die "No such subroutine '$meth''"; } }
|
|---|