[Israel.pm] A regexp question

Mikhael Goikhman migo at homemail.com
Mon May 17 09:29:33 PDT 2004


On 17 May 2004 18:16:03 +0300, Gaal Yahas wrote:
> 
> >   $m16 = join '', map { s/^.$/0$_/; $_ } split /[:-]/, $mac;
> 
> You forgot the ':' in the join

No, please reread the original message, he wanted 16 hex digits, with no
":" between them.

Regards,
Mikhael.

-- 
perl -e 'print+chr(64+hex)for+split//,d9b815c07f9b8d1e'



More information about the Perl mailing list