Primeval
view release on metacpan or search on metacpan
lib/Primeval.pm view on Meta::CPAN
=head2 C< prim{eval} LIST >
takes a list of variable names, prints out the names along with their values.
each element of the argument list is split on white-space.
while actually a subroutine named C< prim > the block C< {eval} > must always
be passed to C< prim > as the first argument. this code block is used to peek
into the calling scope to fetch the values for lexical variables. using this
code block to access the caller's scope allows this module to have no external
dependencies (normally PadWalker would be required to peek into a lexical scope)
the arguments are checked to make sure they look like perl variable names, so
you don't have to worry about anything accidentally making it into an eval that
you wouldn't want to.
C< prim{eval} > will normally only print the first level of an array or hash
using a simple internal serialization routine. for full recursive printing,
arrays and hashes can be passed to L<Data::Dumper> by setting
C< $Primeval::DUMP = 1 >
( run in 0.760 second using v1.01-cache-2.11-cpan-05444aca049 )