From 34e90fc7792cf54d0e1eab630a340d8ddb1f8310 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Wed, 6 Mar 2024 14:07:03 +1100 Subject: [PATCH] perlrun: document the exit status for the -c option Fixes #21686 --- pod/perlrun.pod | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pod/perlrun.pod b/pod/perlrun.pod index 3b8ab535ef73..1a553f966777 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -355,6 +355,10 @@ or C blocks and any C statements: these are considered as occurring outside the execution of your program. C and C blocks, however, will be skipped. +If the syntax check is successful perl will exit with a status of zero +and report C syntax OK>. On failure perl will print +any detected errors and exit with a non-zero status. + =item B<-d> X<-d> X<-dt>