in reply to DBI converting hex values
$a = "Paul"; $a =~ s!(.)!sprintf("%02x", ord($1))!eg; print "0x$a";
I'm sure there's a more clever way to do that with unpack, but I'm way too lazy to figure it out!
-sam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI converting hex values
by shmem (Chancellor) on Nov 02, 2006 at 18:52 UTC | |
by tye (Sage) on Nov 02, 2006 at 18:54 UTC | |
by shmem (Chancellor) on Nov 02, 2006 at 19:24 UTC | |
|
Re^2: DBI converting hex values
by Sprad (Hermit) on Nov 02, 2006 at 18:58 UTC |