|
|
| Do you know where your variables are? | |
| PerlMonks |
Simple RE answerby tilly (Archbishop) |
| on Aug 04, 2000 at 20:18 UTC ( [id://26262]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Hmmm..
UPDATE That solves the original problem. ybiC pointed out that another format mac addresses come in has groups of 4 characters, separated by :. The amended question was whether both formats can be handled together. The following does that: In both cases the delimiter is gobbled by not being cached in a backref, and if it does not appear in even groups then a 0 will appear. Danger alert. In the pair "05" the 0 gets replaced, so if you wanted to use this to insert anything other than 0 you would need to not just check the truth of $1, but rather it's length.
Cheers,
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||