sub bcd {
my $data = shift;
+ no warnings;
return join('', map { sprintf("%02x",ord($_)) } split (//, $data));
}
$decoded->[$_] = bcd( $data->[$_] );
}
+ no warnings;
+
my $hash;
$hash->{SXID} = substr( $decoded->[4], 0, 20 );
$hash->{JMBAG} = substr( $decoded->[4], 22, 10 );