pack and unpack can just let you do what you want, in Perl there is not like an intrinsic way to convert between binary and decimal but pack and unpack can allow you to do the interchanging...
in reply to Need a little coding help
my $decimal = 4;
# 32 in the template means the binary number will have 32 places
Excellence is an Endeavor of Persistence.
A Year-Old Monk :D .