![]() |
|
P is for Practical | |
PerlMonks |
Re: Regex overlap in MAC addressby VSarkiss (Monsignor) |
on Sep 11, 2006 at 20:56 UTC ( #572399=note: print w/replies, xml ) | Need Help?? |
Personally, I prefer your second approach over the regex approach. I would make it a little more brief with sprintf, something like this: You could argue that it's too compact, but I think the join-map-split idiom is fairly common. YMMV.
In Section
Seekers of Perl Wisdom
|
|