develooper Front page | perl.perl5.porters | Postings from August 2022

Difference -de0 and -e

Thread Next
Martijn Lievaart
August 8, 2022 20:23
Difference -de0 and -e
Message ID:
Hi porters,

I was wandering if this classifies as a bug. There seems to be a 
difference in features when loading the debugger en when not:

$ perl -e 'say 1'
Number found where operator expected at -e line 1, near "say 1"
     (Do you need to predeclare say?)
syntax error at -e line 1, near "say 1"
Execution of -e aborted due to compilation errors.
$ perl -de0

Loading DB routines from version 1.39_11
Editor support available.

Enter h or 'h h' for help, or 'man perldebug' for more help.

main::(-e:1):    0
   DB<1> say 1

Tried 5.18 and 5.34, no difference. Should I file a bug?



Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About