DBIx:: | |
DBIx:: | Build 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. |
Build a hash map of lexical variables used in a code reference. The main access point is the class method lexmap().
=end NaturalDocs
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. |
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.
CodeRef $codref | The code reference to inspect |
HashRef | The lexical variables used in the coderef |
=end NaturalDocs
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.
CodeRef $codref | The code reference to inspect |
ArrayRef $valsi | The stash for the code-ref, or undef if not known |
Integer $targ | The index into the stash of the desired element |
ArrayRef | The stash for the code-ref |
Scalar | The value for the given index as a perl scalar |
=end NaturalDocs
Turn a variable value from its B::* module objects into a real perl value.
sub b_to_item
Build a hashmap of lexical variables used in a coderef.
sub lexmap
Return the value of a variable in scope in a given code ref where the targ parameter (index into the stash) is known.
sub fetch_by_targ