in reply to Re^10: Introspecting function signatures
in thread Introspecting function signatures
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^12: Introspecting function signatures
by szabgab (Priest) on Mar 07, 2021 at 21:13 UTC | |
by LanX (Saint) on Mar 07, 2021 at 21:31 UTC |