Sie befinden sich hier: eisfair / Pack-Eis
News News News


perl-context-preserve (perl)

Perl - Context::Preserve (Offizielles Paket)

Version: 2.8.0 Status: stable Release Datum: 2018-02-03
Autor: the eisfair team, team(at)eisfair(dot)org
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).
SHA256-Prüfsumme: d8281b10dadc15ae03e134fcd62b4dc20e8f249a9f28d436b1618d6a8c56b18d
Größe: 2.94 KByte
Benötigte Pakete: base 2.8.1
perl 2.8.0