perl-context-preserve
Perl - Context::Preserve
2.8.0
2018-02-03
eisfair-1
the eisfair team, team(at)eisfair(dot)org
stable
base 2.8.1
perl 2.8.0
Internal Program Version: Context::Preserve 0.03
Sometimes you need to call a function, get the results, act on the results,
then return the result of the function. This is painful because of
contexts; the original function can behave different if it's called in
void, scalar, or list context. You can ignore the various cases and just
pick one, but that's fragile. To do things right, you need to see which
case you're being called in, and then call the function in that context.
This results in 3 code paths, which is a pain to type in (and maintain).
http://search.cpan.org/dist/Context-Preserve