diff options
author | Karl Williamson <khw@cpan.org> | 2022-10-23 22:01:41 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-10-25 10:21:11 -0600 |
commit | 045ccbc5b9188548b1b7ac49b0acea899d0b9892 (patch) | |
tree | 55d69b97402b55c77e5088f3a03ffaa28180c531 /pod | |
parent | 08c664df7c07619c9a7ab8039b4d42f20a3d9adf (diff) | |
download | perl-045ccbc5b9188548b1b7ac49b0acea899d0b9892.tar.gz |
Clarify perlfunc sleep entry
Note what happens if a fraction, and add markup.
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlfunc.pod | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 663c15358f..5ad9106d4d 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -7538,7 +7538,10 @@ argument is given. Returns the integer number of seconds actually slept. EXPR should be a positive integer. If called with a negative integer, L<C<sleep>|/sleep EXPR> does not sleep but instead emits a warning, sets -$! (C<errno>), and returns zero. +C<$!> (C<errno>), and returns zero. + +If called with a non-integer, the fractional part is ignored. + C<sleep 0> is permitted, but a function call to the underlying platform implementation still occurs, with any side effects that may have. |