Subject: | unspecified delimiter |
I'm using Net::MAC to do some mac address formatting and I was
wondering if not specifying a delimiter is valid? i.e. The following
code
Show quoted text
-----------------------begin code ------------------------------------
#!/usr/bin/perl
use Net::MAC;
$macaddr = "00:11:22:33:44:55";
print "$macaddr\n";
my $mac = Net::MAC->new('mac' => "$macaddr");
my $con_mac = $mac->convert(
'bit_group' => 8, # octet grouping
#'delimiter' => ':'# dot-delimited
);
$foo_mac=$con_mac->get_mac(), "\n";
print "$foo_mac\n";
------------------------end code -------------------------------------
gives the following output;
00:11:22:33:44:55
Use of uninitialized value in string eq at
/usr/lib/perl5/site_perl/5.8.5/Net/MAC.pm line 299.
Use of uninitialized value in regexp compilation at
/usr/lib/perl5/site_perl/5.8.5/Net/MAC.pm line 300.
001122334455