DBIx::StORM::LexBindings

Summary
DBIx::StORM::LexBindings
DBIx::StORM::LexBindingsBuild a hash map of lexical variables used in a code reference.
Functions
b_to_item (private static)Turn a variable value from its B::* module objects into a real perl value.
lexmap (public static)Build a hashmap of lexical variables used in a coderef.
fetch_by_targ (public static)Return the value of a variable in scope in a given code ref where the targ parameter (index into the stash) is known.

DBIx::StORM::LexBindings

Build a hash map of lexical variables used in a code reference.  The main access point is the class method lexmap().

=end NaturalDocs

Summary
Functions
b_to_item (private static)Turn a variable value from its B::* module objects into a real perl value.
lexmap (public static)Build a hashmap of lexical variables used in a coderef.
fetch_by_targ (public static)Return the value of a variable in scope in a given code ref where the targ parameter (index into the stash) is known.

Functions

b_to_item (private static)

sub b_to_item

Turn a variable value from its B::* module objects into a real perl value.  This may act recursively (for references, hashes and arrays).

Parameters

Listobjects of B::* class

Returns

ArrayRefThe objects as their native Perl values

=end NaturalDocs

lexmap (public static)

sub lexmap

Build a hashmap of lexical variables used in a coderef.  The hash returned has variables names as the keys, and the variable values as the corresponding hash value.

Parameters

CodeRef $codrefThe code reference to inspect

Returns

HashRefThe lexical variables used in the coderef

=end NaturalDocs

fetch_by_targ (public static)

sub fetch_by_targ

Return the value of a variable in scope in a given code ref where the targ parameter (index into the stash) is known.  You can hand in a previously calculated stash array if preferred, to save the overhead of rebuilding it.

Parameters

CodeRef $codrefThe code reference to inspect
ArrayRef $valsiThe stash for the code-ref, or undef if not known
Integer $targThe index into the stash of the desired element

Returns

ArrayRefThe stash for the code-ref
ScalarThe value for the given index as a perl scalar

=end NaturalDocs

sub b_to_item
Turn a variable value from its B::* module objects into a real perl value.
sub lexmap
Build a hashmap of lexical variables used in a coderef.
sub fetch_by_targ
Return the value of a variable in scope in a given code ref where the targ parameter (index into the stash) is known.
Close