Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
switched to a different AUTOLOAD idiom (closes #574)
  • Loading branch information
kraih committed Dec 24, 2013
1 parent 4d284be commit 219b4b1
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

4.64 2013-12-22
4.64 2013-12-24

4.63 2013-12-19
- Deprecated Mojolicious::secret in favor of Mojolicious::secrets.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Collection.pm
Expand Up @@ -13,7 +13,7 @@ our @EXPORT_OK = ('c');
sub AUTOLOAD {
my $self = shift;

my ($package, $method) = our $AUTOLOAD =~ /^([\w:]+)::(\w+)$/;
my ($package, $method) = split /::(\w+)$/, our $AUTOLOAD;
croak "Undefined subroutine &${package}::$method called"
unless blessed $self && $self->isa(__PACKAGE__);

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/DOM.pm
Expand Up @@ -18,7 +18,7 @@ use Scalar::Util qw(blessed weaken);
sub AUTOLOAD {
my $self = shift;

my ($package, $method) = our $AUTOLOAD =~ /^([\w:]+)::(\w+)$/;
my ($package, $method) = split /::(\w+)$/, our $AUTOLOAD;
croak "Undefined subroutine &${package}::$method called"
unless blessed $self && $self->isa(__PACKAGE__);

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -48,7 +48,7 @@ our $VERSION = '4.64';
sub AUTOLOAD {
my $self = shift;

my ($package, $method) = our $AUTOLOAD =~ /^([\w:]+)::(\w+)$/;
my ($package, $method) = split /::(\w+)$/, our $AUTOLOAD;
croak "Undefined subroutine &${package}::$method called"
unless blessed $self && $self->isa(__PACKAGE__);

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Controller.pm
Expand Up @@ -27,7 +27,7 @@ my %RESERVED = map { $_ => 1 } (
sub AUTOLOAD {
my $self = shift;

my ($package, $method) = our $AUTOLOAD =~ /^([\w:]+)::(\w+)$/;
my ($package, $method) = split /::(\w+)$/, our $AUTOLOAD;
Carp::croak "Undefined subroutine &${package}::$method called"
unless Scalar::Util::blessed $self && $self->isa(__PACKAGE__);

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Routes/Route.pm
Expand Up @@ -12,7 +12,7 @@ has pattern => sub { Mojolicious::Routes::Pattern->new };
sub AUTOLOAD {
my $self = shift;

my ($package, $method) = our $AUTOLOAD =~ /^([\w:]+)::(\w+)$/;
my ($package, $method) = split /::(\w+)$/, our $AUTOLOAD;
croak "Undefined subroutine &${package}::$method called"
unless blessed $self && $self->isa(__PACKAGE__);

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Validator/Validation.pm
Expand Up @@ -10,7 +10,7 @@ has [qw(input output)] => sub { {} };
sub AUTOLOAD {
my $self = shift;

my ($package, $method) = our $AUTOLOAD =~ /^([\w:]+)::(\w+)$/;
my ($package, $method) = split /::(\w+)$/, our $AUTOLOAD;
croak "Undefined subroutine &${package}::$method called"
unless blessed $self && $self->isa(__PACKAGE__);

Expand Down

0 comments on commit 219b4b1

Please sign in to comment.