我无法在perl调试器中评估"现代perl"代码.在调试文件中的代码时,它可以正常工作,但不能从提示中调试.
最小的例子:
# activating 5-10 features with -E (it works)
$ perl -E 'say "x"'
x
Run Code Online (Sandbox Code Playgroud)
# calling the debugger with -E
# it works for infile code but for prompt line code...
$ perl -dEbug Loading DB routines from perl5db.pl version 1.33
DB say "x"
String found where operator expected at (eval 16)[/local-perl/lib/5.12.1/perl5db.pl:638] line 2, near "say "x""
at (eval 16)[/local-perl/lib/5.12.1/perl5db.pl:638] line 2
eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package main; $^D = $^D | $DB::db_stop;say … perl ×1