Some times, source installation in GNU-linux is necessary. This could be perl modules i.e installation of perl modules by source. General way of installation is make  and make install. However, make uninstall doesn't work the way it is explained here. Error would be:
Uninstall is unsafe and deprecated, the uninstallation was not performed. Log would have following text, followed by tons of unlink commands:
Uninstall is unsafe and deprecated, the uninstallation was not performed. We will show what would have been done.

To remove such perl modules, do following (works in ubuntu 16.04 (Xenial)/bash shell)

$ cd <source directory (where make file is present)>
$ sudo make uninstall > test.txt

Now open the test.txt and delete  first and last text warnings and keep all the lines that start with "unlink". Save the edited test.txt. Execute following command. This would execute all the unlink commands in test.txt (edited test.txt). 

$ cat test.txt | while read CMD; do sudo $CMD; done