Skip Menu |

This queue is for tickets about the Net-MAC CPAN distribution.

Report information
The Basics
Id: 114123
Status: resolved
Priority: 0/
Queue: Net-MAC

People
Owner: OLIVER [...] cpan.org
Requestors: f [...] zz.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Net::MAC dies although die => 0
Date: Mon, 2 May 2016 13:48:29 +0200
To: bug-Net-MAC [...] rt.cpan.org
From: Florian Lohoff <f [...] zz.de>
Hi, this testcase dies although i have die => 0 #!/usr/bin/perl -w use Net::MAC; my $m=" 00:30:48:bd:46:3a"; my $mac=Net::MAC->new('mac' => $m, 'die' => 0); print lc($mac->as_IEEE()); Flo -- Florian Lohoff f@zz.de UTF-8 Test: The 🐈 ran after a 🐁, but the 🐁 ran away
Download signature.asc
application/pgp-signature 828b

Message body not shown because it is not plain text.

Hello, The initialisation of the $mac instance does not die. However when you try to print $mac->as_IEEE the fatal error is thrown, as there's no way to return the MAC address which is invalid. So it seems the code is working as expected, to me. Please let me know if you think there should be a different behaviour. regards, oliver. On Mon May 02 07:48:45 2016, f@zz.de wrote: Show quoted text
> > Hi, > this testcase dies although i have die => 0 > > #!/usr/bin/perl -w > use Net::MAC; > my $m=" 00:30:48:bd:46:3a"; > my $mac=Net::MAC->new('mac' => $m, 'die' => 0); > print lc($mac->as_IEEE()); > > Flo
-- regards, oliver.