[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[FWP] Super SpaceShip



After creating this Perl snippet, I was planning on using it in my sig on
clpm, but I haven't been on the newsgroup in a while, so I'll share it with
FWP instead.


I wrote this code to demonstrate the super spaceship operator; I also
showcase it as the center point of the symmetry.


            1. < 0, push @ tnirp => <<=>> <= print @ hsup ,0 > .1
Just another Perl hacker                             rekcah lerP rehtona tsuJ

                              ; print @ tnirp ;


(The numeric comparison operator, <=>, is also called the spaceship
operator.)


Ronald


P.S.  This code was inspired by one of the questions from the qualifying
test for the Perl Death Bowl at TPC 3.0.  The test was written by Benjamin
Holzmann.

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe