Here's a thought:
when the code is run it yeilds:$hex="abcdef0123"; $hex=~s/([0-9a-fA-F]{2})/$1=/g; @digits=split(/=/,$hex); $octets=join(".",reverse @digits); printf "%s\n%s\n",$hex,$octets;
perl octet.pl ab=cd=ef=01=23= 23.01.ef.cd.ab
| Peter L. Berghold -- Unix Professional Peter at Berghold dot Net | |
| Dog trainer, dog agility exhibitor, brewer of fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and a good Belgian ale in your chalice. | |
In reply to Re: Hex to Octet
by blue_cowdawg
in thread Hex to Octet
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |