|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: Re: Data structure challengeby gjb (Vicar) |
| on Mar 17, 2004 at 17:13 UTC ( [id://337533]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Wouldn't a Thanks Aristotle, I was too lazy/huried to check the correct syntax. The length of the string we want to allocate is N = U*ceil(log_10(U)), so I hoped pack(aN, '') would create a string of N '\0' characters using some low level memory allocation function. Unfortunately that doesn't seem to happen, the resulting string consists of N spaces, so there goes constant time... :( Just my 2 cents, -gjb-
In Section
Meditations
|
|
||||||||||||||||||||||||||||