Devel-Camelcadedb
Devel-Camelcadedb copied to clipboard
lvalue subroutines not handled properly
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, <GEN0> 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 https://github.com/Perl/perl5/issues/17412