Lexical::Sub - subroutines without namespace pollution River stage two • 7 direct dependents • 12 total dependents

This module implements lexical scoping of subroutines. Although it can be used directly, it is mainly intended to be infrastructure for modules that manage namespaces. This module influences the meaning of single-part subroutine names that appear dir...

ZEFRAM/Lexical-Var-0.009 - 25 Aug 2013 19:00:07 GMT

Sub::Lexical - implements lexically scoped subroutines River stage zero No dependents

Using this module will give your code the illusion of having lexically scoped subroutines. This is because where ever a sub is lexically declared it will really just turn into a "my()"ed scalar pointing to a coderef. However the lexically scoped subs...

BROQ/Sub-Lexical-0.81 - 15 Oct 2002 16:54:11 GMT

Sub::Exporter::Lexical - to export lexically-available subs with Sub::Exporter River stage one • 1 direct dependent • 1 total dependent

Sub::Exporter::Lexical provides an alternate installer for Sub::Exporter. Installers are documented in Sub::Exporter's documentation; all you need to know is that by using Sub::Exporter::Lexical's installer, you can import routines into a lexical sco...

RJBS/Sub-Exporter-Lexical-0.092292 - 24 Nov 2013 19:00:02 GMT

Sub::Accessor::Small - base class used by Lexical::Accessor River stage two • 2 direct dependents • 22 total dependents

Not documented yet....

TOBYINK/Lexical-Accessor-0.009 - 13 Jun 2017 19:03:40 GMT

Sub::Inject - Inject subroutines into a lexical scope River stage one • 3 direct dependents • 3 total dependents

This module allows to dynamically inject lexical subs during compilation. It is implemented using lexical subroutines introduced in perl 5.18. This is a low level library. It is meant for cases where subroutine names and bodies are to be treated as d...

FERREIRA/Sub-Inject-0.3.0 - 22 Sep 2017 01:59:54 GMT

Sub::Op - Install subroutines as opcodes. River stage zero No dependents

This module provides a C and Perl API for replacing subroutine calls by custom opcodes. This has two main advantages : * it gets rid of the overhead of a normal subroutine call ; * there's no symbol table entry defined for the subroutine. Subroutine ...

VPIT/Sub-Op-0.02 - 08 Jan 2010 21:37:06 GMT

Sub::Clean - Clean subroutines with an attribute River stage zero No dependents

This module 'cleans' subroutines you mark with the "Cleaned" attribute, preventing them being called from places they haven't been already been bound by the perl compiler. The main advantage in this is that you can declare subroutines and use them in...

MARKF/Sub-Clean-0.01 - 27 Jul 2010 07:25:29 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

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::Delete - Perl module enabling one to delete subroutines River stage three • 6 direct dependents • 457 total dependents

This module provides one function, "delete_sub", that deletes the subroutine whose name is passed to it. (To load the module without importing the function, write "use Sub::Delete();".) This does more than simply undefine the subroutine in the manner...

SPROUT/Sub-Delete-1.00002 - 18 Apr 2010 20:25:10 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::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

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::Compose River stage zero No dependents

The compose() function takes any number of subroutine references and creates a new subroutine reference from them that * Executes the code from the 1st with the parameters passed in * Executes the code from (N+1)th with the return value from the Nth....

RKINYON/Sub-Compose-0.01 - 21 Jan 2006 19:11:39 GMT

Sub::Metadata - read and write subroutine metadata River stage two • 5 direct dependents • 16 total dependents

This module contains functions that examine and modify data that Perl attaches to subroutines....

ZEFRAM/Sub-Metadata-0.002 - 25 Jul 2017 08:53:30 GMT

Sub::Exporter - a sophisticated exporter for custom-built routines River stage four • 337 direct dependents • 5774 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 Exporter.pm) is its ability to build new coderefs f...

RJBS/Sub-Exporter-0.987 - 18 Oct 2013 15:10:54 GMT

Sub::Recursive - Anonymous memory leak free recursive subroutines River stage one • 3 direct dependents • 4 total dependents

Recursive closures suffer from a severe memory leak. "Sub::Recursive" makes the problem go away cleanly and at the same time allows you to write recursive subroutines as expressions and can make them truly anonymous. There's no significant speed diff...

LODIN/Sub-Recursive-0.05 - 18 Jul 2015 06:39:35 GMT

Sub::StrictDecl - detect undeclared subroutines in compilation River stage zero No dependents

This module provides optional checking of subroutine existence at compile time. This checking detects mistyped subroutine names and subroutines that the programmer forgot to import. Traditionally Perl does not detect these errors until runtime, so it...

ZEFRAM/Sub-StrictDecl-0.005 - 19 Jul 2017 10:08:02 GMT

Sub::Parameters - enhanced parmeter handling River stage zero No dependents

Sub::Parameters provides a syntactic sugar for parameter parsing. It's primary interface is via attributes, you first apply notation to the subroutine that you wish it to use extended parameter passing, and of what style with the WantParams attribute...

RCLAMP/Sub-Parameters-0.03 - 03 Feb 2002 03:45:23 GMT

Sub::WhenBodied - delay action until subroutine acquires body River stage one • 1 direct dependent • 3 total dependents

This module provides a facility to delay an action on a subroutine until the subroutine's body (the code that will be run when the subroutine is called) has been attached to the subroutine object. This is mainly useful in implementing subroutine attr...

ZEFRAM/Sub-WhenBodied-0.000 - 24 Mar 2015 22:21:30 GMT

22 results (0.04 seconds)