Skip to content

Commit

Permalink
Mention "dd" in the Data::Dumper section
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jun 4, 2018
1 parent 0ac7f14 commit 877783c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/Language/5to6-nutshell.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -1646,6 +1646,20 @@ Pair, with a key of the var name, and a value of the var value.
["foo" => 42, "bar" => 44, "baz" => [16, 32, 64, "Hike!"]]
=end code
There is also a debugging aid for developers called C<dd> (Tiny Data Dumper,
so Tiny it lost the "t"). This will print the C<.perl> representation plus
some extra information that could be introspected, of the given variables on
STDERR:
=begin code :preamble<no strict;>
# Perl 6
dd $foo, $bar, @baz;
# Output
Int $foo = 42
Int $bar = 44
Array @baz = [16, 32, 64, "Hike!"]
=end code
=head3 C<Getopt::Long>
Switch parsing is now done by the parameter list of the C<MAIN> subroutine.
Expand Down

0 comments on commit 877783c

Please sign in to comment.