Hi, Is there a nicer way of doing this?
use constant XXX => 0xcccc; ($self->{auth_mode}, $val) = unpack('H4a*',$val); $self->{auth_mode} = hex($self->{auth_mode}); given ($self->{auth_mode}) { when (XXX) {do_smthg;} }
Thanks in advance :)
In reply to Nicer hex-unpack by tritt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |