Sub::Context - Perl extension to dispatch subroutines based on their calling context River stage zero No dependents

Sub::Context dispatches subroutine calls based on their calling context. This can be handy for converting return values or for throwing warnings or even fatal errors. For example, you can prohibit a function from being called in void context. Instead...

CHROMATIC/Sub-Context-1.00 - 15 Jul 2005 08:10:19 GMT

Devel::MAT::Context - represent a single call context state River stage one • 1 direct dependent • 1 total dependent

Objects in this class represent a single level of state from the call context. These contexts represent function calls between perl functions....

PEVANS/Devel-MAT-0.40 - 07 Sep 2018 14:17:18 GMT

Acme::Perl::VM::Context - Context classes for APVM River stage zero No dependents

GFUJI/Acme-Perl-VM-0.006 - 18 Nov 2009 01:40:25 GMT

Sub::Nary - Try to count how many elements a subroutine can return in list context. River stage zero No dependents

This module uses the B framework to walk into subroutines and try to guess how many scalars are likely to be returned in list context. It's not always possible to give a definitive answer to this question at compile time, so the results are given in ...

VPIT/Sub-Nary-0.03 - 08 Aug 2008 22:41:15 GMT

Sub::Go - DWIM sub blocks for smart matching River stage zero No dependents

In case you don't know, smart matching ("~~") data against a code block will run the block once (for scalars) or, distributively, many times for arrays and hashes: [1..10] ~~ sub { say shift }; @arr ~~ sub { say shift }; %h ~~ sub { ... }; The motiva...

RODRIGO/Sub-Go-0.01 - 11 Jul 2011 09:05:54 GMT

Sub::Fp - A Clojure / Python Toolz / Lodash inspired Functional Utility Library River stage zero No dependents

ODDTUPLE/Sub-Fp-0.10 - 31 Oct 2018 12:43:41 GMT

Git::Sub - git commands imported as System::Sub subs in the git:: namespace River stage one • 4 direct dependents • 5 total dependents

Use git <http://www.git-scm.com> commands easily from your Perl program. Each git command is imported as a System::Sub DWIM sub....

DOLMEN/Git-Sub-0.163320 - 27 Nov 2016 16:35:22 GMT

Tie::Sub - Tying a subroutine, function or method to a hash River stage one • 1 direct dependent • 3 total dependents

Subroutines don't have interpreted into strings. The module ties a subroutine to a hash. The subroutine is executed at fetch hash. At long last this is the same, only the notation is shorter. Alternative to " ... ${\ subroutine('abc') } ... " # or " ...

STEFFENW/Tie-Sub-1.001 - 20 Aug 2012 05:37:26 GMT

Sub::Lazy - defer calculating subs until necessary River stage zero No dependents

Sub::Lazy allows you to mark subs as candidates for lazy evaluation. Good candidates for lazy evaluation: * Have no side-effects. They don't alter global variables; they don't make use of any closed-over lexical variables; they don't do IO or make sy...

TOBYINK/Sub-Lazy-0.002 - 10 Sep 2014 22:02:36 GMT

Mock::Sub - Mock package, object and standard subroutines, with unit testing in mind. River stage two • 8 direct dependents • 12 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 GMT

Sub::Curry - Create curried subroutines River stage zero No dependents

"Sub::Curry" is a module that provides the currying technique known from functional languages. This module, unlike many other modules that borrow techniques from functional languages, doesn't try to make Perl functional. Instead it tries to make curr...

LODIN/Sub-Curry-0.8 - 28 Feb 2005 15:28:36 GMT

Sub::Quote - Efficient generation of subroutines via string eval River stage four • 56 direct dependents • 6368 total dependents

This package provides performant ways to generate subroutines from strings....

HAARG/Sub-Quote-2.005001 - 20 Apr 2018 10:53:47 GMT

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 GMT

Sub::Usage - Issue subroutine/method usage River stage zero No dependents

Sub::Usage provides functions to display usage of subroutines or methods from inside the stub. Some people like to check the parameters of the routine. For example, # turn_on(NAME, COLOR [, INTENSITY]) sub turn_on { @_ >= 2 or die "usage: turn_on(NAM...

HASANT/Sub-Usage-0.03 - 26 Feb 2002 00:52:37 GMT

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 GMT

Sub::Lambda - syntactic sugar for lambdas in Perl River stage zero No dependents

This module provides syntactic sugar for lambda abstractions and applications. Perl supports lambdas through subroutine references. You can write things like the curried addition: sub { my ($x) = @_; sub { my ($y) = @_; $x + $y } } However, this is n...

TOYVO/Sub-Lambda-0.02 - 18 Mar 2008 20:28:10 GMT

System::Sub - Wrap external command with a DWIM sub River stage one • 1 direct dependent • 6 total dependents

See also "System::Sub::AutoLoad" for even simpler usage. "System::Sub" provides in your package a sub that wraps the call to an external program. The return value is line(s) dependending on context ("wantarray"). This may be what you need if you want...

DOLMEN/System-Sub-0.162800 - 06 Oct 2016 23:19:13 GMT

Sub::Filter - automatically filter function's return value River stage zero No dependents

This module allows a function to be augmented with a filter that will be applied to its return values. Whenever the function returns, by whatever means, the value (or list of values) being returned is passed through the filter before going to the cal...

ZEFRAM/Sub-Filter-0.004 - 26 Aug 2013 00:26:18 GMT

Sub::Prepend - Prepend code to named subroutines. River stage one • 2 direct dependents • 5 total dependents

"Sub::Prepend" simply conveniently prepends code to named subroutines without any risk of the wrapping itself breaks any existing code. Prepending means that "foo" and "bar" below are equivalent (barring "caller" in the prepended block): prepend foo ...

LODIN/Sub-Prepend-0.01 - 03 Jul 2008 19:02:18 GMT

Sub::Sequence - simplest, looping over an array in chunks River stage zero No dependents

Sub::Sequence provides the function named 'seq'. You can treat an array with simple interface....

BAYASHI/Sub-Sequence-0.03 - 25 Nov 2012 14:14:34 GMT

32 results (0.04 seconds)