Fixing Legacy Perl Functions With Decorators

Posted on October 21, 2017. Filed under: Uncategorized | Tags: , , , , , , , |

Fixing Legacy Perl Functions With Decorators

Function decorators give us a way to modify a function’s behaviour without changing its source. This is useful in changing the behaviour of complex or legacy functions that you don’t want to touch.

Although perl does not have a built-in syntax for creating or using decorators, typeglob manipulations are used to easily fill the gap.

See also:

Liked it here?
Why not try sites on the blogroll...