Open pmqs opened 1 year ago
Consider this code (lsub.pl) that makes use of a an lvalue sub.
lsub.pl
use strict; use warnings; my $v ; sub fred: lvalue { $v } fred = 5; print "v=[$v]\n";
running with perl 5.38.0 it outputs this.
$ perl lsub.pl v=[5]
Also works with the command-line debugger.
Running the debugger with Perl-LanguageServer in vscode gives this in the Debug Console
Can't modify non-lvalue subroutine call of &DB::sub at lsub.pl line 8.
Running Perl-LanguageServer(version 2.6.1
$ perl -MPerl::LanguageServer -e 'print "$Perl::LanguageServer::VERSION\n"' 2.6.1
Consider this code (
lsub.pl
) that makes use of a an lvalue sub.running with perl 5.38.0 it outputs this.
Also works with the command-line debugger.
Running the debugger with Perl-LanguageServer in vscode gives this in the Debug Console
Running Perl-LanguageServer(version 2.6.1