
Spaceship Operator
Perl Programming Language
Betascript Publishing
Published on 10. May 2026
Book
Paperback/Softback
180 pages
978-613-6-10565-9 (ISBN)
Description
Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. The spaceship
operator, written <=>, is a binary relational operator that
originated in the Perl programming language. Other languages, such as
Ruby and Groovy also support the spaceship operator. Unlike traditional
equality operators, which will return 1 (true) or 0 (false) depending on
whether the arguments are equal or unequal, the spaceship operator will
return 1, 0, or ¿1 depending on the value of the left argument relative
to the right argument. If the left argument is greater than the right
argument, the operator returns 1. If the left argument is less than the
right argument, the operator returns ¿1. If the two arguments are equal,
the operator returns 0. If the two arguments cannot be compared (e.g.
one of them is NaN), the operator returns undef.
More details
Language
English
Place of publication
Germany
Product notice
Paperback (trade)
Unsewn / adhesive bound
Dimensions
Height: 220 mm
Width: 150 mm
Thickness: 11 mm
Weight
286 gr
ISBN-13
978-613-6-10565-9 (9786136105659)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification