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:
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 ...use X; use Data::Dumper; sub func1 {....} sub func2 {....} until (should_stop()) { ..... .... .. }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Test automation
by Eily (Monsignor) on Jul 01, 2015 at 14:38 UTC | |
by perl_help26 (Beadle) on Jul 01, 2015 at 14:46 UTC | |
by Eily (Monsignor) on Jul 01, 2015 at 15:01 UTC | |
by perl_help26 (Beadle) on Jul 01, 2015 at 15:05 UTC | |
Re: Testing a .pl script
by Monk::Thomas (Friar) on Jul 01, 2015 at 14:40 UTC | |
Re: Test automation
by Corion (Patriarch) on Jul 01, 2015 at 14:29 UTC | |
by perl_help26 (Beadle) on Jul 01, 2015 at 14:35 UTC | |
by Corion (Patriarch) on Jul 01, 2015 at 14:41 UTC | |
Re: Testing a .pl script
by Discipulus (Canon) on Jul 01, 2015 at 20:02 UTC | |
Re: Testing a .pl script
by Anonymous Monk on Jul 01, 2015 at 17:47 UTC |
Back to
Seekers of Perl Wisdom