print "Enter the time in 24 hour format:"; $time=; ($hours,$minutes)=split /:/, $time; $con=(($minutes/256)+$hours)*256; printf "%x", "$con";