in reply to Re^2: Using pack to evaluate text strings as hexadecimal values
in thread Using pack to evaluate text strings as hexadecimal values
What doesn't this do that you'd like it to do?
$n = 0; $n |= 1 << $_ for 1,3,5,7;; print $n, unpack 'H2', pack 'v', $n;; 170 aa
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Using pack to evaluate text strings as hexadecimal values
by jpl (Monk) on Mar 22, 2011 at 11:56 UTC | |
by BrowserUk (Patriarch) on Mar 22, 2011 at 12:22 UTC | |
by jpl (Monk) on Mar 22, 2011 at 13:22 UTC | |
by BrowserUk (Patriarch) on Mar 22, 2011 at 13:58 UTC |