Skip to content
adds a ->perl method to expressions via the autobox pragma that stringifies its results
Perl
Find file
Pull request Compare This branch is 7 commits behind cowens:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib/autobox/expr
t
.gitignore
Build.PL
Changes
MANIFEST
MANIFEST.SKIP
README

README

autobox-expr-dump

autobox::expr::dump pragma adds, via the autobox pragma, a method to 
normal expression (such as scalars, arrays, hashes, math, literals, etc.)
that produces a human/perl readable representation of the value of that
expression. 

    use autobox::expr::dump;

    my $foo = "foo";
    print $foo->perl;   #$VAR1 = 'foo';

    print +(5*6)->perl; #$VAR1 = 30;

    my @a = (1..3);

    print @a->perl;
    #$VAR1 = [
    #          1,
    #          2,
    #          3
    #        ];

    print {a=>1, b=>2}->perl;
    #$VAR1 = {
    #          'a' => 1,
    #          'b' => 2
    #        };

INSTALLATION

To install this module, run the following commands:

	perl Build.PL
	./Build
	./Build test
	./Build install

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the
perldoc command.

    perldoc autobox::expr::dump

COPYRIGHT AND LICENCE

Copyright (C) 2009 Chas. J Owens IV

This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.

Something went wrong with that request. Please try again.