Help me in writing the script

Hi,

I have written a script which converts a give hexdecimal value to binary value in perl. But now, the problem is I should read every bit of it \( if its 10101010, i should read the value in each position and if the value in that position is 1 i should print a string and should exit if its 0\).

I have written a hash table for positions 0,1,2..7 . It should check if the 0th position is either 1 or 0. If its 1 then it should print the key in the hash table for the value 0. If its 0 then it should exit.

Please help me in doing so.

Thanks,
Prakash.:b:

Any reason, why should 'we' do that?

Show us what have you tried so far.