| 1 |
autobox-dump |
| 2 |
|
| 3 |
autobox::dump pragma adds, via the autobox pragma, a method to |
| 4 |
normal expression (such as scalars, arrays, hashes, math, literals, etc.) |
| 5 |
that produces a human/perl readable representation of the value of that |
| 6 |
expression. |
| 7 |
|
| 8 |
use autobox::dump; |
| 9 |
|
| 10 |
my $foo = "foo"; |
| 11 |
print $foo->perl; #"foo"; |
| 12 |
|
| 13 |
print +(5*6)->perl; #30; |
| 14 |
|
| 15 |
my @a = (1..3); |
| 16 |
|
| 17 |
print @a->perl; |
| 18 |
#[ |
| 19 |
# 1, |
| 20 |
# 2, |
| 21 |
# 3 |
| 22 |
#]; |
| 23 |
|
| 24 |
print {a=>1, b=>2}->perl; |
| 25 |
#{ |
| 26 |
# "a" => 1, |
| 27 |
# "b" => 2 |
| 28 |
#}; |
| 29 |
|
| 30 |
INSTALLATION |
| 31 |
|
| 32 |
To install this module, run the following commands: |
| 33 |
|
| 34 |
perl Build.PL |
| 35 |
./Build |
| 36 |
./Build test |
| 37 |
./Build install |
| 38 |
|
| 39 |
SUPPORT AND DOCUMENTATION |
| 40 |
|
| 41 |
Please report any bugs or feature requests to |
| 42 |
http://github.com/cowens/autobox-dump/issues |
| 43 |
|
| 44 |
After installing, you can find documentation for this module with the |
| 45 |
perldoc command. |
| 46 |
|
| 47 |
perldoc autobox::dump |
| 48 |
|
| 49 |
COPYRIGHT AND LICENCE |
| 50 |
|
| 51 |
Copyright (C) 2009 Chas. J Owens IV |
| 52 |
|
| 53 |
This program is free software; you can redistribute it and/or modify it |
| 54 |
under the same terms as Perl itself. |
| 55 |
|