This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
infnan: mention the unusual semantics of "numeric".
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 26 Jan 2015 02:08:13 +0000 (21:08 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 28 Jan 2015 11:52:32 +0000 (06:52 -0500)
pod/perldiag.pod

index 3ceb747..ab621a1 100644 (file)
@@ -189,6 +189,11 @@ alternatives.
 that expected a numeric value instead.  If you're fortunate the message
 will identify which operator was so unfortunate.
 
+Note that for the C<Inf> and C<NaN> (infinity and not-a-number) the
+definition of "numeric" is somewhat unusual: the strings themselves
+(like "Inf") are considered numeric, and anything following them is
+considered non-numeric.
+
 =item Argument list not closed for PerlIO layer "%s"
 
 (W layer) When pushing a layer with arguments onto the Perl I/O