develooper Front page | | Postings from August 2002

Re: this must be golfable

Thread Previous | Thread Next
Eugene van der Pijll
August 11, 2002 05:48
Re: this must be golfable
Message ID:
And on 11 sextil 2002 said Phil Carmody:
> One way:
> perl -pe '$_=y/o |./10/d?pack(B8,$_):""'

  perl -pe '$_=y/|.//d?pack(B8,$_):""'
  perl -ne 'y/|.//d&&print pack B8,$_'

In perl there are 256 binary digits.


The uglier a man's legs are, the better he plays golf---it's almost a
law. -- |-| (,  \\/ells

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About