pseudocode, because I don't know your project sufficiently well
{ my $fixture_A = temdir(); # fixture in closure sub test1 ($fixture_B) { # no need to repeat A # uses fixture A and B } sub test2 ($fixture_C) { # no need to repeat A # uses fixture A and B } }
NB: I use "closure" in the original sense, it's the hull with "enclosed vars" not the enclosed sub.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^11: Introspecting function signatures
by LanX
in thread Introspecting function signatures
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |