Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1079 from titsuki/use-perl-instead-of-dd
Use .perl instead of dd
  • Loading branch information
titsuki committed Dec 25, 2016
2 parents c72d402 + 9eabdc2 commit b9edd20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions doc/Type/Any.pod6
Expand Up @@ -252,14 +252,14 @@ Defined as:
Forces given object to be evaluated in item context and returns the value of it.
dd item([1,2,3]); # $[1, 2, 3]
dd item({ apple => 10 }); # ${:apple(10)}
dd item("abc"); # "abc"
say item([1,2,3]).perl; # $[1, 2, 3]
say item({ apple => 10 }).perl; # ${:apple(10)}
say item("abc").perl; # "abc"
You can also use C<$> as item contextualizer.
dd $[1,2,3]; # $[1, 2, 3]
dd $("abc"); # "abc"
say $[1,2,3].perl; # $[1, 2, 3]
say $("abc").perl; # "abc"
=end pod

Expand Down
6 changes: 3 additions & 3 deletions doc/Type/Mu.pod6
Expand Up @@ -128,9 +128,9 @@ write a Perl expression that produces a particular value
Forces the invocant to be evaluated in item context and returns the value of it.
dd [1,2,3].item; # $[1, 2, 3]
dd { apple => 10 }.item; # ${:apple(10)}
dd "abc".item; # "abc"
say [1,2,3].item.perl; # $[1, 2, 3]
say { apple => 10 }.item.perl; # ${:apple(10)}
say "abc".item.perl; # "abc"
=head2 method clone
Expand Down

0 comments on commit b9edd20

Please sign in to comment.