![]() |
|
"be consistent" | |
PerlMonks |
Re: Binary value of stringby BrowserUk (Patriarch) |
on Jul 11, 2011 at 19:08 UTC ( #913756=note: print w/replies, xml ) | Need Help?? |
Or
But the result will be modulo 2**32 (assuming it ever gets that high; which won;t happen until your strings are at least 16 million characters long. If that was a concern, on a perl with 64-bit ints you can do:
Which will handle strings to at least 72057594037927936 bytes, which should be enough to be going on with :) Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|