summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-10-23 22:01:41 -0600
committerKarl Williamson <khw@cpan.org>2022-10-25 10:21:11 -0600
commit045ccbc5b9188548b1b7ac49b0acea899d0b9892 (patch)
tree55d69b97402b55c77e5088f3a03ffaa28180c531 /pod
parent08c664df7c07619c9a7ab8039b4d42f20a3d9adf (diff)
downloadperl-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.pod5
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.