in reply to Re: 99 Problems in Perl6
in thread 99 Problems in Perl6

It's kind of like a poor man's Data::Dumper. For example, if you want to see all of your environment variables, you can use this:

%*ENV.perl.say;

That will represent %*ENV (remember that the '*' twigil means it's global) in a way that's legal Perl6 code. I use it because it makes complex data structures much easier to read. I don't know if it's possible to customize the output, though. Right now it's all one one line.

You can still do this:

%*ENV.say;

You won't find the output as legible, though.

And while we're on the topic of environment variables, use the '+' twigil to read them. What to see the 'HOME' environment variable?

$+HOME.say

Update: the one thing I really want is for reflection to be added to Pugs so I can query an object for its methods. That will be a huge productivity boost so we can see exactly what we can play with.

Cheers,
Ovid

New address of my CGI Course.