The licence of perl scripts gone wrong

This reverts commit 1e8082ad62c517d626a8de89c27f7d24fec00843.
re-licensing with fixed perl code licensing