in reply to More Help with Regex
In fact, even if you don't, you could probably do something like this:print join(':', unpack 'a2a2a2a2a2a2', '00a0c801adc6')),"\n<BR>";
(Documentation on using unpack seems unusually sparse, so there might be an easier way to do this that I am unaware of.)my $string = '00a0c801adc6'; print join(':', unpack('a2' x (length($string)/2), $string)),"\n<BR>";
|
|---|