The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Search results for "module:Sub::Context"

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 UTC

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

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.53 - 07 Mar 2024 17:57:32 UTC

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 UTC

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 UTC

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 UTC

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

ODDTUPLE/Sub-Fp-0.46 - 22 Feb 2019 22:04:24 UTC

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 UTC

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 UTC

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 UTC

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

Sub::Curry - Create curried subroutines River stage one • 1 direct dependent • 2 total 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 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

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

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

HAARG/Sub-Quote-2.006008 - 20 Jan 2023 10:28:03 UTC

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 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::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 UTC

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 UTC

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 UTC

Sub::Genius - Manage concurrent Perl semantics in the uniprocess execution model of perl. River stage zero No dependents

Sub::Genius generates a correctly ordered, sequential series of subroutine calls from a declarative *plan* that may be parallel or concurrent in nature. This allows a concurrency plan to be *serialized* or *linearized* properly for execution in a uni...

OODLER/Sub-Genius-0.314005 - 08 Dec 2023 07:52:53 UTC

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 UTC
37 results (0.056 seconds)