You can still override the things:
package X; use strict; use Exporter 'import'; use vars '@EXPORT_OK'; @EXPORT_OK = qw(func1 func2 ); sub func1 { ... }; sub func2 { ... }; sub should_stop { ... }; until (should_stop()){...}
And then in your test file:
local *X::should_stop = sub { return 1 }; require X; X->import('func1');
In reply to Re^3: Test automation
by Corion
in thread Testing a .pl script
by perl_help26
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |