develooper Front page | perl.fwp | Postings from March 2008

Re: YN golf

Thread Previous | Thread Next
From:
Philippe Bruhat
Date:
March 31, 2008 16:54
Subject:
Re: YN golf
Message ID:
20080331235440.GF6892@plop.home.bruhat.net
On Mon, Mar 31, 2008 at 04:34:58PM -0700, Rick Klement wrote:
> 
> perl -le 'print for glob"{Y,N}"x5'
> 

Of course you have to run this in a directory that doesn't contain
any file matching /^[YN]{5}$/.

-- 
 Philippe Bruhat (BooK)

 The learned man makes a mistake but once... but the truly stupid keep
 practicing until they get it right.
                                    (Moral from Groo The Wanderer #75 (Epic))

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