summaryrefslogtreecommitdiff
path: root/pod/perlop.pod
diff options
context:
space:
mode:
authorYitzchak Scott-Thoennes <sthoenna@efn.org>2005-08-07 20:03:00 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-08-17 12:33:18 +0000
commit2b54f59ff973752abae83d93b744e48e13815b05 (patch)
tree2afe8c8141068df5d32288207dab276c70e194ed /pod/perlop.pod
parent937b804e26ebbf3fb854afd0a028d8b26cf46829 (diff)
downloadperl-2b54f59ff973752abae83d93b744e48e13815b05.tar.gz
Re: [perl #36654] Inconsistent treatment of NaN
Date: Aug 7, 2005 8:03 PM Message-ID: <20050807180308.GA2112@efn.org> Subject: Re: [perl #36654] Inconsistent treatment of NaN From: Yitzchak Scott-Thoennes <sthoenna@efn.org> Date: Wed, 10 Aug 2005 22:53:51 -0700 Message-ID: <20050811055351.GA2296@efn.org> p4raw-id: //depot/perl@25299
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r--pod/perlop.pod4
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index ba2ff9f737..da7cef52b1 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -369,8 +369,8 @@ values, using them with "<=>" returns undef. NaN is not "<", "==", ">",
returns true, as does NaN != anything else. If your platform doesn't
support NaNs then NaN is just a string with numeric value 0.
- perl -le '$a = NaN; print "No NaN support here" if $a == $a'
- perl -le '$a = NaN; print "NaN support here" if $a != $a'
+ perl -le '$a = "NaN"; print "No NaN support here" if $a == $a'
+ perl -le '$a = "NaN"; print "NaN support here" if $a != $a'
Binary "eq" returns true if the left argument is stringwise equal to
the right argument.