I have a bit array I need to store in GET/POST
parameters and input type=hidden fields. Presently
I'm storing one bit per hidden field.
I would like to optimize this and use a little less
space. If I know I need less than 32 elements in my
boolean (bit) array, I can just use an integer in a
Richard Heintze wrote:
What if I need more than 32 elements in my bit array?
I suppose I could use the first hidden field for the
first 32 elements of my array and the next 32 elements
are stored in the next hidden field. Uggghhh... Is
there an easier way?
You must not read the regular beginners
Let me rephrase that question:
Is there a way I can store large integers ( 2**32) as
character strings in radix 10 or radix 16 and covert
these strings to and from bitvectors from which I can
insert and extract individual bits?
I think bitvector is the name of the module. I did a
search on CPAN
Randy W. Sims wrote:
maybe 'perldoc -f vec', 'perldoc -f pack',
also http://search.cpan.org/search?query=bit
I was only suggesting:
man perlpacktut
-Sx-
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/