From 3b2fee47cdd823a304d1ec8183060c268f39c6d3 Mon Sep 17 00:00:00 2001 From: Zefram Date: Sun, 10 Dec 2017 22:23:31 +0000 Subject: [PATCH] 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. --- perl.c | 7 ------- 1 file changed, 7 deletions(-) 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 */ -- 1.8.3.1