develooper Front page | perl.golf | Postings from August 2002

Re: this must be golfable

Thread Previous | Thread Next
From:
Piers Cawley
Date:
August 13, 2002 14:07
Subject:
Re: this must be golfable
Message ID:
84eld2ejps.fsf@despairon.bofh.org.uk
Prakash Kailasa <pk-perl-golf@kailasa.net> writes:

>     -p $_=y/|.//d&&pack(B8,$_)		# phil
>     -p $_=pack B8 x!!y/|.//d,$_		# eugene
>     -p $_=y/|.//d?pack B8,$_:""		# mtve
> 
> Assuming the same rule as others (ignore the top and bottom lines)
> 
>     -p y/|.//d,$_=pack B8,$_		# pk

But the others *dont* ignore the top and bottom line.
      
      -p $_=pack y/|.//d?B8:"",$_

Hmmm... can't seem to get under Eugene & MTVe's scores. It feels like
there ought to be a way, but nothing's springing to mind.

-- 
Piers

   "It is a truth universally acknowledged that a language in
    possession of a rich syntax must be in need of a rewrite."
         -- Jane Austen?

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