Devel::BeginLift - make selected sub calls evaluate at compile time

Devel::BeginLift 'lifts' arbitrary sub calls to running at compile time - sort of a souped up version of "use constant". It does this via some slightly insane perlguts magic. import use Devel::BeginLift qw(list of subs); Calls Devel::BeginLift->setup...

FLORA/Devel-BeginLift-0.001003 - 11 May 2010 06:28:51 GMT - Search in distribution

Sub::Alias - Simple subroutine alias.

This module does a compile-time code injection to let you define subroute aliases with their names, but not code refs. The not-so-scarily-described way to alias a sub looks like this: sub name { "..." } *get_name = \&name; As you can see, it's a bit ...

GUGOD/Sub-Alias-0.03 - 09 Jan 2009 13:30:49 GMT - Search in distribution

BEGIN::Lift - Lift subroutine calls into the BEGIN phase

This module serves a very specific purpose, which is to provide a mechanism through which we can "lift" a given subroutine to be executed entirely within the "BEGIN" phase of the Perl compiler and to leave no trace of itself in the "RUN" phase....

STEVAN/BEGIN-Lift-0.04 - 13 Jan 2017 21:49:12 GMT - Search in distribution

Readonly::BeginLift - Readonly at BEGIN time

The Readonly module exports the "Readonly" subroutine, but this subroutine executes at runtime. This module causes it to execute at BEGIN time. Thus: use strict; use warnings; use Readonly; use constant MY_VALUE => 'foo'; Readonly my $MY_VALUE => 'ba...

OVID/Readonly-BeginLift-0.03 - 13 Feb 2010 16:38:59 GMT - Search in distribution

4 results (0.391 seconds)