develooper Front page | perl.perl5.porters | Postings from September 2009

Re: when ( foo() ) { ... }

Thread Previous | Thread Next
From:
Joshua ben Jore
Date:
September 23, 2009 22:35
Subject:
Re: when ( foo() ) { ... }
Message ID:
dc5c751d0909232235j7c9898ddi94dffa5b6503a28f@mail.gmail.com
On Wed, Sep 23, 2009 at 10:00 PM, Yuval Kogman <nothingmuch@woobling.org> wrote:
> when ( /foo/ .. /bar/ ) { }
> when ( $foo != 4 ) { }
>
> etc come to mind, but they are all very explicit (always ops that
> produce a new boolean result), as do the various unary predicates
> (file tests, defined() etc).

They're explicit? given ( $bool ), heck no!

Josh

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