develooper Front page | | Postings from August 2002

Re: this must be golfable

Thread Previous | Thread Next
Piers Cawley
August 13, 2002 14:07
Re: this must be golfable
Message ID:
Prakash Kailasa <> 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.


   "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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About