Camelcade/Devel-Camelcadedb

lvalue subroutines not handled properly

JB62 opened this issue · 1 comments

JB62 commented

Assigning to lvalue subroutines always fails with "Can't modify non-lvalue subroutine call at ..." errors when run under the debugger. The same code executes just fine stand-alone.

eg.

use strict;
use warnings;
my $var = "Before";
sub foo : lvalue {
$var;
}
foo = "After";
print foo, "\n";

Gives...
(1)Connecting to the IDE from process 1698 at localhost:38513...
Connected.
Disconnected
Can't modify non-lvalue subroutine call at /data/misc/sample-share/working/src/xx.pl line 7, line 1.

Where just running on the command line gives

$ perl xx.pl
After

--

IDE version: IC-171.3780.107
Plugin version: 2017.1.1
Perl version v5.22.1
Devel::Camelcadedb version 1.6.1.6

Probably related Perl/perl5#17412