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

Re: YN golf

Thread Previous | Thread Next
March 31, 2008 16:54
Re: YN golf
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About