Skip Menu |

This queue is for tickets about the Mason CPAN distribution.

Report information
The Basics
Id: 66175
Status: resolved
Priority: 0/
Queue: Mason

People
Owner: JSWARTZ [...] cpan.org
Requestors: bokutin [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.03
Fixed in: 2.03



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; }
sorry... the above patch is worng. diff --git a/lib/Mason/Request.pm b/lib/Mason/Request.pm index 72e89ca..6e0152b 100644 --- a/lib/Mason/Request.pm +++ b/lib/Mason/Request.pm @@ -194,7 +194,8 @@ method rel_to_abs ($path) { } method scomp () { - my $buf = $self->capture( sub { $self->comp(@_) } ); + my @params = @_; + my $buf = $self->capture( sub { $self->comp(@params) } ); return $buf; }
Fixed in 2.04.
Thanks. Fixed in 2.04.