I'm a newcomer to Perl. Don't know why it took me so long. I've been having a blast writing various scripts to ease my life as a sysadmin.
I'm working on a script to cat log files for a hex address. In our system it is in decimal format. So I would like to take 00910855 and convert it to hex. That part is easy; $hexval = sprintf("%x", $decval);. Being new to perl, I'm a little lost on what functions/process I would use to represent this hex in 00:5B:08:37 value. If I thought about it long enough I imagine I could take the sub string of 2 convert each set to hex val and build the formated string. But I just know this is an old topic and there is a fast better way. Your help would be greatly appreciated. Thanks