in reply to Concatenate and join
Update: Changed the transliteration to bind with the regex match. The former line was:my @outputlist = '28:8a:1c:59:cc:85'; for my $addr (@outputlist) { my $mac_R5 = join ".", $addr =~ tr/://dr =~ /..../g; print $mac_R5, "\n"; }
my $mac_R5 = join ".", $addr =~ tr/://d && $addr =~ /..../g;
Which works for perls before version 5.014.
|
|---|