3 results (0.258 seconds)
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

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




Hosting generously
sponsored by Bytemark