http://qs1969.pair.com?node_id=1132828

perl_help26 has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I have a .pl script with the following structure:

use X; use Data::Dumper; sub func1 {....} sub func2 {....} until (should_stop()) { ..... .... .. }
I am trying to build a test module for this pl script. Is there a way to export the functions WITHOUT running the while loop? Preferably, I do not want to split the functions into a .pm file. Thanks ...