perl.fwp...Re: YN golf by shmem- April 11, 2008 From the keyboard of Uri Guttman 31.03.08,17:50:> > someone posted (and it wasn&39;t homework) for an easy way to get all> possible combos of YN (5 chars so 32 answers). he got some basic> multiline answers but i think it makes for a great golf problem.> > here is my first pass which i am sure can be easily bested. i haven&39;t> even squeezed out the white spaces but it does work.> > golf away!> > uri> > perl -le &39;print join "n", map tr01NY;...http://www.nntp.perl.org/group/perl.fwp/2008/04/msg4104.html RE: YN golf by Allen, Greg- April 1, 2008 Magoo! -----Original Message-----From: John W. Krahn mailto:krahnjtelus.net Sent: Tuesday, April 01, 2008 7:17 AMTo: fwpperl.orgSubject: Re: YN golfUri Guttman wrote:> someone posted (and it wasn&39;t homework) for an easy way to get all> possible combos of YN (5 chars so 32 answers). he got some basic> multiline answers but i think it makes for a great golf problem.> > here is my first pass which i am sure can be easily bested. i haven&39;t> even squeezed out the white spaces.http://www.nntp.perl.org/group/perl.fwp/2008/04/msg4103.html Re: YN golf by John W. Krahn- April 1, 2008 Uri Guttman wrote:> someone posted (and it wasn&39;t homework) for an easy way to get all> possible combos of YN (5 chars so 32 answers). he got some basic> multiline answers but i think it makes for a great golf problem.> > here is my first pass which i am sure can be easily bested. i haven&39;t> even squeezed out the white spaces but it does work.> > golf away!> > uri> > perl -le &39;print join "n", map tr01NY; $_ map unpack( "b5", chr),.http://www.nntp.perl.org/group/perl.fwp/2008/04/msg4102.html Re: YN golf by Philippe Bruhat- April 1, 2008 On Mon, Mar 31, 2008 at 11:37:05PM -0500, Chris Dolan wrote:> On Mar 31, 2008, at 6:54 PM, Philippe Bruhat (BooK) wrote:>> On Mon, Mar 31, 2008 at 04:34:58PM -0700, Rick Klement wrote:>>>>>> perl -le &39;print for glob"Y,N"x5&39;>>>>>>> Of course you have to run this in a directory that doesn&39;t contain>> any file matching YN5$.>> Not true. The notation doesn&39;t care whether files of that name > actual exist. I...http://www.nntp.perl.org/group/perl.fwp/2008/04/msg4101.html |