i never used them (because i hate win32 coding) but you should have a look at the Win32:: modules on cpan. maybe some of them can do what you want. at least the Win32 API has to support actions like that, because i already saw (native) programs doing it.
besides that, please note that we are a german perl forum. if you prefer to speek/type english, there is a very large perl community at
http://www.perlmonks.org.
$_=unpack"B*",~pack"H*",$_ and y&1|0& |#&&print"$_\n"for@.=qw BFA2F7C39139F45F78
0A28104594444504400 0A2F107D54447DE7800 0A2110453444450500 73CF1045138445F4800 0
F3EF2044E3D17DE 8A08A0451412411 F3CF207DF41C79E 820A20451412414 83E93C4513D17D2B