Hello!
I have written a small Perl script and now I would like to create a test suite for it. I thought it would be nice to be able to use
the script as a module, import the subs defined in the script and test these. Is there a way to have the script both standalone Perl script and Perl module? (I do not want to split the script into a separate module and the “executable”, since I plan to distribute the script as a single file.)
Or is there a better way to test the script?