Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FAQ] linenoise and data structure dumping
  • Loading branch information
stmuk committed Oct 21, 2015
1 parent 7d3a59c commit 9fc750c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions doc/Language/faq.pod
Expand Up @@ -55,6 +55,28 @@ L<http://doc.perl6.org/language.html|http://doc.perl6.org/language.html>
=head1 Language Features
=head2 How can I dump Perl 6 data structures (like Perl 5 Data::Dumper and similar)?
Examples:
my $foo="bar"
dd $foo # Str $foo = "bar"
say :$foo.perl # :foo("bar")
say :$foo.gist # foo => bar
There are also modules to do this in the ecosystem like
L<Data::Dump|https://github.com/tony-o/perl6-data-dump/>
which uses color.
=head2 How can I get command line history in the perl 6 prompt (REPL)?
Install L<Linenoise|https://github.com/hoelzro/p6-linenoise/> from the
ecosystem.
An alternative on UNIX like systems is to install rlwrap. This can
be done on Debian-ish systems by "apt-get install rlwrap".
=head2 Why is the Rakudo compiler sometimes more apologetic?
If SORRY! is present in the output the error is a compile time error
Expand Down

0 comments on commit 9fc750c

Please sign in to comment.