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

Search results for "module:Constant"

constant - Perl pragma to declare constants River stage five • 737 direct dependents • 32646 total dependents

This pragma allows you to declare constants at compile-time. When you declare a constant such as "PI" using the method shown above, each machine your script runs upon can have as many digits of accuracy as it can use. Also, your program will be easie...

RJBS/constant-1.33 - 08 Jun 2015 21:47:40 UTC

constant::tiny - Perl pragma to declare constants River stage zero No dependents

This module is a lightweight version of the Perl standard module "constant.pm". Here are the keys differences: * only works on Perl 5.10+ in order to simplify a good part of the code * doesn't support Unicode names; please use the standard "constant....

SAPER/constant-tiny-1.02 - 16 Aug 2015 20:33:53 UTC

constant::def - Perl pragma to declare previously undeclared constants River stage one • 1 direct dependent • 1 total dependent

MONS/constant-def-0.01 - 11 Mar 2009 18:24:59 UTC

constant::our - Perl pragma to declare constants like our vars River stage zero No dependents

This pragma extends standard pragma 'constant'. As you may know, when a constant is used in an expression, Perl replaces it with its value at compile time, and may then optimize the expression further. You can inspect this behavior by yourself: $ per...

GREEN/constant-our-0.07 - 14 May 2012 15:34:38 UTC

constant::abs - Perl pragma to declare previously constants using absolute name River stage one • 1 direct dependent • 1 total dependent

MONS/constant-def-0.01 - 11 Mar 2009 18:24:59 UTC

Pod::Constant - source constants from POD to avoid repetition River stage zero No dependents

It is often neccessary to refer to 'default values' or important constant values in your POD, but then you have to put them in your code as well, and they can easily get out of sync. "use" this module and you can import variables from the POD directl...

RJH/Pod-Constant-0.1 - 26 Feb 2012 01:04:03 UTC

Acme::constant - Like constant, except actually not. River stage zero No dependents

This pragma lets you make inconstant constants, just like the constants the users of Ruby or Opera (before Opera 14, that is) already enjoyed. Unlike Perl constants, that are replaced at compile time, Acme constants, in true dynamic programming langu...

GLITCHMR/Acme-constant-0.1.3 - 28 Sep 2013 12:28:31 UTC

constant::Atom - define unique symbols (constant functions with opaque values) River stage zero No dependents

This module is used to declare 'function constants', similar to those created with constant and enum, but with a key difference: you don't specify a value for the constants, and you should use it in situations where you don't need to know the value. ...

NEILB/constant-Atom-0.11 - 16 Mar 2021 09:42:36 UTC

Class::Constant - Build constant classes River stage zero No dependents

Class::Constant allows you declaratively created so-called "constant classes". These are very much like enumerated types (as close as a typeless language like Perl can get, at least). The classes generated by this module are modeled closely after Jav...

ROBN/Class-Constant-0.07 - 09 Jul 2016 04:48:02 UTC

Padre::Constant - constants used by configuration subsystems River stage two • 56 direct dependents • 56 total dependents

Padre uses various configuration subsystems (see "Padre::Config" for more information). Those systems needs to somehow agree on some basic stuff, which is defined in this module....

SZABGAB/Padre-1.02 - 14 Jun 2023 07:09:43 UTC

constant::defer - constant subs with deferred value calculation River stage two • 9 direct dependents • 45 total dependents

"constant::defer" creates a subroutine which on the first call runs given code to calculate its value, and on any subsequent calls just returns that value, like a constant. The value code is discarded once run, allowing it to be garbage collected. De...

KRYDE/constant-defer-6 - 20 Feb 2015 08:01:10 UTC

Scalar::Constant - lightweight constant scalars. River stage zero No dependents

This module gives you a simple way to define constant scalars. Unlike the constants created with constant, these can be interpolated into strings and used as hash keys....

ARUNBEAR/Scalar-Constant-0.001005 - 29 Jan 2012 21:06:23 UTC

Getopt::constant - set constants from command line options River stage zero No dependents

Other command-line options processing modules (like Getopt::Std) parse command-line arguments (from @ARGV) and set either variables or hash entries based on them. This module, however, parses command-line arguments into constants which are put into t...

SBURKE/Getopt-constant-1.03 - 30 Dec 2004 07:47:04 UTC

constant::boolean - Define TRUE and FALSE constants. River stage two • 3 direct dependents • 12 total dependents

Defines "TRUE" and "FALSE" constants in caller's namespace. You could use simple values like empty string or zero for false, or any non-empty and non-zero string value as true, but the "TRUE" and "FALSE" constants are more descriptive. It is virtuall...

DEXTER/constant-boolean-0.02 - 28 Nov 2009 14:04:38 UTC

constant::lexical - Perl pragma to declare lexical compile-time constants River stage one • 3 direct dependents • 4 total dependents

This module creates compile-time constants in the manner of constant.pm, but makes them local to the enclosing scope....

SPROUT/constant-lexical-2.0003 - 19 Jun 2016 22:16:42 UTC

Constant::Generate - Common tasks for symbolic constants River stage two • 6 direct dependents • 12 total dependents

MNUNBERG/Constant-Generate-0.17 - 16 Feb 2015 14:31:20 UTC

ExtUtils::Constant - generate XS code to import C header constants River stage five • 24 direct dependents • 12547 total dependents

ExtUtils::Constant facilitates generating C and XS wrapper code to allow perl modules to AUTOLOAD constants defined in C library header files. It is principally used by the "h2xs" utility, on which this code is based. It doesn't contain the routines ...

NWCLARK/ExtUtils-Constant-0.25 - 18 Apr 2018 06:11:57 UTC

constant::override - Override/ignore constants River stage zero No dependents

Provides for overriding "constant"'s import method, so that the 'constant' functions can be replaced with your own functions/values, or ignored altogether. "use constant::override ..." statements must occur before "use constant ..." statements....

APNIC/constant-override-0.01 - 04 Oct 2013 21:12:43 UTC

Constant::Exporter - define and export constants easily River stage zero No dependents

Constant::Exporter is a module to define and export constants easily. This module adopts Exporter's full functionality so you can import constants with default constants, tags or only selected constants....

PUNYTAN/Constant-Exporter-0.01 - 06 Aug 2013 08:42:13 UTC

Constant::Generator - this module bring flexible (I hope) constant generator to You River stage zero No dependents

This module has only one short `workhorse' that implement constant generation logic. This workhorse do perl-source code generation and come to you with extra power via options (logic modificators). Let me save Your time in constant generation :)....

DOBRO/Constant-Generator-1.013 - 07 Apr 2017 02:50:06 UTC
133 results (0.026 seconds)