Skip Menu |

This queue is for tickets about the Scope-Upper CPAN distribution.

Report information
The Basics
Id: 44204
Status: resolved
Priority: 0/
Queue: Scope-Upper

People
Owner: Nobody in particular
Requestors: torsten.foertsch [...] gmx.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.07
Fixed in: 0.08



Subject: reap() clobbers return values of the caller
The reap() function changes the return values of the caller, see: perl -MScope::Upper=reap,UP -Mstrict -MData::Dumper -le ' sub xx {reap sub {1234}, UP} sub yy {xx; return 23} my @l=yy; print Dumper \@l; my $l=yy; print $l' $VAR1 = [ 23, 1234 <== this is added by reap() ]; 1234 <== in scalar context reap() overrides the original value if you need more detail reach me via torsten.foertsch@gmx.net
Hello, Thanks for showing interest in Scope::Upper and for reporting this bug. It should have been fixed in the git repository by commit 84fa046758ce37dea430850727cf998fe4cb98a1 (see the META.yml file for the address of the repository if you want to give it a try). Regards, Vincent.