From: Matt S Trout Date: Thu, 18 Apr 2019 13:46:31 +0000 (+0000) Subject: murder AUTOLOAD by default because I keep getting confused by it while debugging X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5b2308a10eb55e0f295fa1bd2509782f5ff9c65f;p=scpubgit%2FQ-Branch.git murder AUTOLOAD by default because I keep getting confused by it while debugging --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 3ea5600..bde5666 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -1645,6 +1645,7 @@ sub AUTOLOAD { # This allows us to check for a local, then _form, attr my $self = shift; my($name) = $AUTOLOAD =~ /.*::(.+)/; + puke "AUTOLOAD invoked for method name ${name} and allow_autoload option not set" unless $self->{allow_autoload}; return $self->generate($name, @_); }