Currently, perl shows -e if an error occurs even it is called with -E.
The attached patch changes this...
Current behaviour:
D:\Perl510\bin>perl.exe -E "say ->"
syntax error at -e line 1, at EOF
Execution of -e aborted due to compilation errors.
With patch:
D:\Perl510\bin>perl.exe -E "say ->"
syntax error at -E line 1, at EOF
Execution of -E aborted due to compilation errors.
Cheers,
Renee
PERL_ARGS_ASSERT_OPEN_SCRIPT;
if (PL_e_script) {
- PL_origfilename = savepvs("-e");
+ PL_origfilename = (PL_minus_E ? savepvs("-E") : savepvs( "-e" ));
}
else {
/* if find_script() returns, it returns a malloc()-ed value */