develooper Front page | perl.fwp | Postings from February 2005

Re: "Secret" operators

Thread Previous | Thread Next
From:
Andrew Savige
Date:
February 1, 2005 22:25
Subject:
Re: "Secret" operators
Message ID:
20050202062552.32611.qmail@web50809.mail.yahoo.com
Not that it is seen very often, but you might try dreaming up a
name for:

    ]->[

I first saw this operator employed in a graceful way to return the
lesser of $x and $y:

    [ $x => $y ]->[ $y <= $x ]

/-\


Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About