Subject: | error occurred. $m->scomp( '...' ); |
diff --git a/lib/Mason/Request.pm b/lib/Mason/Request.pm
index 72e89ca..d9c77bf 100644
--- a/lib/Mason/Request.pm
+++ b/lib/Mason/Request.pm
@@ -194,7 +194,7 @@ method rel_to_abs ($path) {
}
method scomp () {
- my $buf = $self->capture( sub { $self->comp(@_) } );
+ my $buf = $self->capture( method () { $self->comp(@_) } );
return $buf;
}