Perl: the Markov chain saw | |
PerlMonks |
Re: One for the regexp fansby davorg (Chancellor) |
on Aug 04, 2000 at 13:37 UTC ( [id://26156]=note: print w/replies, xml ) | Need Help?? |
Do MAC addresses always have six sections? If so, you could do something like this:
It's still two lines, but the first is just there so I don't have to type '%02x' six times :) Oh, and it's not really a regex solution - sorry! --<http://www.dave.org.uk> European Perl Conference - Sept 22/24 2000, ICA, London <http://www.yapc.org/Europe/>
In Section
Seekers of Perl Wisdom
|
|