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-Tag: v2.000000~3^2~198 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ab6238aa50755976c3169319f1fe0d330d498548;p=dbsrgits%2FSQL-Abstract.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 be1f3c5..a4a8baa 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, @_); }