Skip to content

Commit b9edd20

Browse files
authored
Merge pull request #1079 from titsuki/use-perl-instead-of-dd
Use .perl instead of dd
2 parents c72d402 + 9eabdc2 commit b9edd20

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

doc/Type/Any.pod6

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,14 @@ Defined as:
252252
253253
Forces given object to be evaluated in item context and returns the value of it.
254254
255-
dd item([1,2,3]); # $[1, 2, 3]
256-
dd item({ apple => 10 }); # ${:apple(10)}
257-
dd item("abc"); # "abc"
255+
say item([1,2,3]).perl; # $[1, 2, 3]
256+
say item({ apple => 10 }).perl; # ${:apple(10)}
257+
say item("abc").perl; # "abc"
258258
259259
You can also use C<$> as item contextualizer.
260260
261-
dd $[1,2,3]; # $[1, 2, 3]
262-
dd $("abc"); # "abc"
261+
say $[1,2,3].perl; # $[1, 2, 3]
262+
say $("abc").perl; # "abc"
263263
264264
=end pod
265265

doc/Type/Mu.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ write a Perl expression that produces a particular value
128128
129129
Forces the invocant to be evaluated in item context and returns the value of it.
130130
131-
dd [1,2,3].item; # $[1, 2, 3]
132-
dd { apple => 10 }.item; # ${:apple(10)}
133-
dd "abc".item; # "abc"
131+
say [1,2,3].item.perl; # $[1, 2, 3]
132+
say { apple => 10 }.item.perl; # ${:apple(10)}
133+
say "abc".item.perl; # "abc"
134134
135135
=head2 method clone
136136

0 commit comments

Comments
 (0)