develooper Front page | perl.golf | Postings from January 2006

Re: PBP

Thread Previous | Thread Next
From:
Peter Makholm
Date:
January 20, 2006 02:38
Subject:
Re: PBP
Message ID:
873bjkggk9.fsf@xyzzy.adsl.dk
dantie@gmx.at (Daniel Tiefnig) writes:

> if(FOO) {
>     print "foo!";
> } else {
>     print "bar!";
> }

  print FOO?"foo!":bar!";

23 strokes against 56 strokes

-- 
 Peter Makholm     |   First you fall in love with Antarctica, and then it
 peter@makholm.net |                                     breaks your heart
 http://hacking.dk |                                         -- Antarctica

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