RosettaCodeData/Task/String-matching/Perl-6/string-matching-1.pl6

4 lines
211 B
Raku
Raw Permalink Normal View History

2016-12-05 22:15:40 +01:00
$haystack.starts-with($needle) # True if $haystack starts with $needle
$haystack.contains($needle) # True if $haystack contains $needle
$haystack.ends-with($needle) # True if $haystack ends with $needle