From: Zefram Date: Sun, 10 Dec 2017 22:23:31 +0000 (+0000) Subject: remove incorrect doc para about exit from BEGIN X-Git-Tag: v5.27.7~135 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/3b2fee47cdd823a304d1ec8183060c268f39c6d3?hp=0301e899536a22752f40481d8a1d141b7a7dda82 remove incorrect doc para about exit from BEGIN I misinterpreted the behaviour of exit from BEGIN when writing that paragraph. exit from BEGIN actually does cause perl_parse() to return normally, but perl_run() wouldn't subsequently do anything. --- diff --git a/perl.c b/perl.c index 918854b..c7673fc 100644 --- a/perl.c +++ b/perl.c @@ -1644,13 +1644,6 @@ zero exit code can be augmented with a set bit that will be ignored. In any case, this function is not the correct place to acquire an exit code: one should get that from L. -In most cases, if something happens during initialisation and parsing -that causes the Perl interpreter to want to exit, this will cause this -function to return normally with a non-zero return value. Historically, -a call to the Perl built-in function C from inside a C -block has been an exception, causing the process to actually exit. -That behaviour may change in the future. - =cut */