You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/SETTINGS.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,15 @@ Each PEB interactive Perl script must have its own event loop waiting constantly
153
153
A PEB interactive Perl script should have the following features:
154
154
155
155
***No buffering**
156
-
PEB interactive scripts should have ``$|=1;`` among their first lines to disable the built-in buffering of the Perl interpreter, which prevents any output before the script has ended.
156
+
PEB interactive scripts should run with no output buffering preventing output before the script has ended.
157
+
158
+
Output buffering could be disabled using the following code:
159
+
160
+
```perl
161
+
use English;
162
+
163
+
$OUTPUT_AUTOFLUSH = 1;
164
+
```
157
165
158
166
***Failsafe print**
159
167
Failsafe print is necessary for a graceful shutdown of Perl scripts on normal PEB exit and when PEB unexpectedly crashes. When the close button is pressed, PEB closes the STDOUT and STDERR channels of all running Perl scripts and within 3 seconds they must detect their inability to print messages and exit or any unresponsive scripts will be killed.
0 commit comments