Right this has been perlised.  https://github.com/annariel/dw-free/commit/23dc06597fabcf93f969eab791611484e4c2d97b