@@ -829,13 +829,13 @@ C<GeekCook>.
829
829
830
830
The call C < $o.^name > tells us the type of C < $o > : in this case C < Programmer > .
831
831
832
- C < $o .perl > returns a string that can be executed as Perl code, and
833
- reproduces the original object C < $o > . While this does not work perfectly in
832
+ C < $obj .perl > ( C < $obj.raku > ) returns a string that can be executed as Raku code,
833
+ and reproduces the original object C < $o > . While this does not work perfectly in
834
834
all cases, it is very useful for debugging simple objects.
835
835
N < For example, closures cannot easily be reproduced this way; if you
836
836
don't know what a closure is don't worry. Also current implementations have
837
837
problems with dumping cyclic data structures this way, but they are expected
838
- to be handled correctly by C < .perl > at some point. >
838
+ to be handled correctly by C < $obj .perl> ( C < $obj.raku > ) at some point. >
839
839
X < |^methods >
840
840
C < $o.^methods(:local) > produces a list of L < Method|/type/Method > s that can be
841
841
called on C < $o > . The C < :local > named argument limits the returned methods to
@@ -856,7 +856,7 @@ unsurprisingly returns the class name.
856
856
Introspection is very useful for debugging and for learning the language
857
857
and new libraries. When a function or method returns an object you don't
858
858
know about, by finding its type with C < .^name > , seeing a construction recipe
859
- for it with C < .perl > , and so on, you'll get a good idea of what its return
859
+ for it with C < .raku > , and so on, you'll get a good idea of what its return
860
860
value is. With C < .^methods > , you can learn what you can do with the class.
861
861
862
862
But there are other applications too. For instance, a routine that serializes
0 commit comments