in reply to String to Byte array
Assuming the key contains valid 2digit hex numbers:
use strict; use warnings; my $key = "A21B12C212AD12FF"; my @key = map hex, $key =~ /../g; print "@key\n";
HELP: How to do this with unpack? All my attempts are failing...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: String to Byte array
by BrowserUk (Patriarch) on Sep 19, 2013 at 20:50 UTC | |
by kpaxian25 (Novice) on Sep 20, 2013 at 21:11 UTC |