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

Difference -de0 and -e

Thread Next
From:
Martijn Lievaart
Date:
August 8, 2022 20:23
Subject:
Difference -de0 and -e
Message ID:
f50b5698-f232-452e-4210-12c94b0c5207@rtij.nl
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 perl5db.pl 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
1


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


TIA,

M4



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About