Sub::Override - Perl extension for easily overriding subroutines River stage three • 36 direct dependents • 149 total dependents

The Problem Sometimes subroutines need to be overridden. In fact, your author does this constantly for tests. Particularly when testing, using a Mock Object can be overkill when all you want to do is override one tiny, little function. Overriding a s...

OVID/Sub-Override-0.09 - 16 Jan 2013 19:03:08 UTC

lib/Kavorka/TraitFor/Sub/ River stage two • 15 direct dependents • 29 total dependents

TOBYINK/Kavorka-0.039 - 27 Jul 2018 17:58:13 UTC

lib/Kavorka/Sub/ River stage two • 15 direct dependents • 29 total dependents

TOBYINK/Kavorka-0.039 - 27 Jul 2018 17:58:13 UTC

Sub::Mage - Multi-Use utility for manipulating subroutines, classes and more. River stage one • 1 direct dependent • 1 total dependent

What this module attempts to do is make a developers life easier by allowing them to manage and manipulate subroutines and modules. You can override a subroutine, then restore it as it was originally, create after, before and around hook modifiers, d...

BRADH/Sub-Mage-0.032 - 07 Dec 2012 15:26:25 UTC

Sub::Meta - handle subroutine meta information River stage one • 1 direct dependent • 1 total dependent

"Sub::Meta" provides methods to handle subroutine meta information. In addition to information that can be obtained from subroutines using module B etc., subroutines can have meta information such as arguments and return values....

KFLY/Sub-Meta-0.14 - 18 Sep 2021 11:47:46 UTC

Mock::Sub - Mock package, object and standard subroutines, with unit testing in mind. River stage two • 12 direct dependents • 24 total dependents

Easy to use and very lightweight module for mocking out sub calls. Very useful for testing areas of your own modules where getting coverage may be difficult due to nothing to test against, and/or to reduce test run time by eliminating the need to cal...

STEVEB/Mock-Sub-1.09 - 28 Dec 2017 20:08:36 UTC

Wrap::Sub - Object Oriented subroutine wrapper with pre and post hooks, and more. River stage zero No dependents

This module allows you to wrap subroutines with pre and post hooks while keeping track of your wrapped subs. It also allows you to easily wrap all subs within a module (while filtering out the subs that are imported). Thanks to code taken out of Hook...

STEVEB/Wrap-Sub-0.06 - 04 Feb 2016 01:30:29 UTC

Sub::Chain - Chain subs together and call in succession River stage one • 1 direct dependent • 2 total dependents

This module aims to provide a simple interface for chaining multiple subs (coderefs) together and executing them one after the other in a single call. It was specifically designed to be built dynamically from a list of specifications provided at runt...

RWSTAUNER/Sub-Chain-0.012 - 15 Jul 2011 00:19:06 UTC

Sub::Slice - split long-running tasks into manageable chunks River stage zero No dependents

Sub::Slice breaks up a long process into smaller chunks that can be executed one at a time over a stateless protocol such as HTTP/SOAP so that progress may be reported. This means that the client can display progress or cancel the operation part-way ...

BBC/Sub-Slice-1.048 - 18 May 2006 11:07:56 UTC

Sub::Monkey - Dynamically and neatly monkey patch a module River stage zero No dependents

In some cases, rare cases, you may need to temporarily patch a module on-the-go. Sub::Monkey can help you achieve this by providing a set of methods to create, override and add hook modifiers, similar to Moose, but can apply them to remote modules (N...

BRADH/Sub-Monkey-0.004 - 02 Apr 2012 21:42:32 UTC

Sub::Assert - Subroutine pre- and postconditions, etc. River stage one • 2 direct dependents • 2 total dependents

The Sub::Assert module implements subroutine pre- and postconditions. Furthermore, it allows restricting the subroutine's calling context. There's one big gotcha with this: It's slow. For every call to subroutines you use assert() with, you pay for t...

SMUELLER/Sub-Assert-1.23 - 01 Nov 2009 14:57:20 UTC

Kavorka::Sub - a function that has been declared River stage two • 15 direct dependents • 29 total dependents

Kavorka::Sub is a role which represents a function declared using Kavorka. Classes implementing this role are used to parse functions, and also to inject Perl code into them. Instances of classes implementing this role are also returned by Kavorka's ...

TOBYINK/Kavorka-0.039 - 27 Jul 2018 17:58:13 UTC

Sub::Uplevel - apparently run a function in a higher stack frame River stage four • 22 direct dependents • 9094 total dependents

Like Tcl's uplevel() function, but not quite so dangerous. The idea is just to fool caller(). All the really naughty bits of Tcl's uplevel() are avoided. THIS IS NOT THE SORT OF THING YOU WANT TO DO EVERYDAY uplevel uplevel $num_frames, \&func, @args...

DAGOLDEN/Sub-Uplevel-0.2800 - 01 Apr 2017 17:32:42 UTC

Sub::Stubber - Self-monkeypatch your on demand. River stage zero No dependents

MNUNBERG/Sub-Stubber-0.04 - 06 Jan 2012 20:53:15 UTC

Sub::Exporter - a sophisticated exporter for custom-built routines River stage four • 330 direct dependents • 5844 total dependents

ACHTUNG! If you're not familiar with Exporter or exporting, read Sub::Exporter::Tutorial first! Why Generators? The biggest benefit of Sub::Exporter over existing exporters (including the ubiquitous is its ability to build new coderefs f...

RJBS/Sub-Exporter-0.988 - 19 Jun 2021 03:46:29 UTC

Sub::MultiMethod - yet another implementation of multimethods River stage two • 1 direct dependent • 10 total dependents

Sub::Multimethod focusses on implementing the dispatching of multimethods well and is less concerned with providing a nice syntax for setting them up. That said, the syntax provided is inspired by Moose's "has" keyword and hopefully not entirely horr...

TOBYINK/Sub-MultiMethod-0.902 - 15 Nov 2020 15:09:07 UTC

Sub::Meta::Creator - creator of Sub::Meta by code reference River stage one • 1 direct dependent • 1 total dependent

This module provides convenient ways to create Sub::Meta. The purpose of this module is to make it easier to associate Sub::Meta with information of code references. For example, Function::Parameters can retrieve not only subroutine names and package...

KFLY/Sub-Meta-0.14 - 18 Sep 2021 11:47:46 UTC

Symbol::Approx::Sub - Perl module for calling subroutines by approximate names! River stage one • 1 direct dependent • 1 total dependent

This is _really_ stupid. This module allows you to call subroutines by _approximate_ names. Why you would ever want to do this is a complete mystery to me. It was written as an experiment to see how well I understood typeglobs and AUTOLOADing. To use...

DAVECROSS/Symbol-Approx-Sub-v3.1.3 - 13 Jan 2021 10:36:17 UTC

Sub::Meta::Parameters - meta information about parameters River stage one • 1 direct dependent • 1 total dependent

KFLY/Sub-Meta-0.14 - 18 Sep 2021 11:47:46 UTC
19 results (0.035 seconds)