in reply to Re: String to Hex
in thread String to Hex
Update: Unstruck on advice ;)
I also agree that it deserved being unstruck. But:
- I would $num >>= 32;
- AIUI from earlier posts by knowledgeable people, the technique is valid for numbers such that the loop will always involve one or at most two iterations of the loop.
Update: s/16/32/ applied above, thanks GF.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: String to Hex
by BrowserUk (Patriarch) on May 22, 2007 at 22:40 UTC | |
by GrandFather (Saint) on May 22, 2007 at 23:57 UTC | |
by BrowserUk (Patriarch) on May 23, 2007 at 00:05 UTC |
In Section
Seekers of Perl Wisdom