develooper Front page | perl.perl5.porters | Postings from August 2012

Re: RFC: pack()ing long words

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
August 15, 2012 18:46
Subject:
Re: RFC: pack()ing long words
Message ID:
20120816014605.GC20871@cancer.codesimply.com
* David Cantrell <david@cantrell.org.uk> [2012-08-13T13:16:09]
> Leon's suggestion of putting the word length in {curlies} works nicely.
> 
> > I kinda like your approach though. What about bits? Why restrict to
> > multiple of 8 bits?
> 
> Hmmm ... and just have X{40}4 instead of X{5}4 for a five byte
> (== 40 bits) word.

I liked his suggestion as well.  I'd probably suggest r, as it's an
rbitrary-length word.

-- 
rjbs

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