Thread Liste von Objekten sortieren: nach der Eigenschaft Datum (17 answers)
Opened by mordur at 2005-01-21 12:26

format_c
 2005-01-21 16:01
#51140 #51140
User since
2003-08-04
1706 Artikel
HausmeisterIn
[Homepage] [default_avatar]
Hier ein Auszug aus perldoc perlop
Code: (dl )
1
2
3
4
5
6
7
8
9
10
Binary "<=>" returns -1, 0, or 1 depending on whether the left argument
is numerically less than, equal to, or greater than the right argument.
If your platform supports NaNs (not-a-numbers) as numeric values, using
them with "<=>" returns undef. NaN is not "<", "==", ">", "<=" or ">="
anything (even NaN), so those 5 return false. NaN != NaN 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'


Gruß Alex

View full thread Liste von Objekten sortieren: nach der Eigenschaft Datum