in reply to Re: Converting MAC Address
in thread Converting MAC Address
Using:
my $foo = "0:0A:0C:B:B8:F"; $foo =~ s/([0-9A-F])+:?/length($1) < 2?"0$1":$1/ge;
Yields 000A0C0B080F instead of 000A0C0BB80F. I don't understand why it produces that. From what I understand, which is obviously incorrect, it should work.
Any ideas why it doesn't work?
Thanks,
HiFoo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Converting MAC Address
by BrowserUk (Patriarch) on Jan 11, 2003 at 00:43 UTC | |
by Enlil (Parson) on Jan 11, 2003 at 01:59 UTC | |
|
Re: Re: Re: Converting MAC Address
by theorbtwo (Prior) on Jan 11, 2003 at 01:08 UTC | |
by poj (Abbot) on Jan 11, 2003 at 10:49 UTC |