I'm planning to upload my GUI to GitHub but for portability reasons I want to make it depend solely on core perl + Tk and make using other modules conditional.
For example the GUI has functions that copy some content to the Windows clipboard, but this is certainly not portable ( it requires an operation system specific module and even the very concept of a clipboard is not portable between operation systems ).
What is the prudent way to test whether the clipboard module is present in the system and make the use of the module conditional on this?