We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd16648 commit fdb9477Copy full SHA for fdb9477
doc/Type/Match.pod6
@@ -118,9 +118,10 @@ Defined as:
118
119
Tries to convert stringified result of the matched text into Int.
120
121
- say ('12345' ~~ /234/).Int; # OUTPUT: «234»
+ say ('12345' ~~ /234/).Int; # OUTPUT: «234»
122
+ say ('12345' ~~ /234/).Int.^name; # OUTPUT: «Int»
123
# the next line produces a warning about using Nil (result of a no match) in numeric context
- say ('one-two' ~~ /234/).Int; # OUTPUT: «0» # because Nil.Int returns 0
124
+ say ('one-two' ~~ /234/).Int; # OUTPUT: «0» # because Nil.Int returns 0
125
126
=head2 method caps
127
0 commit comments