Skip to content

Commit db65979

Browse files
committed
Pugs -> Rakudo
1 parent 7c1187a commit db65979

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

categories/cookbook/01strings/01-01substrings.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
1111
=end pod
1212

13-
my ($string, $offset, $count) = ('Pugs is da bomb', 2, 5);
13+
my ($string, $offset, $count) = ('Rakudo is da bomb', 2, 5);
1414
say $string.substr($offset, $count);
1515
say $string.substr($offset);
1616

1717
# want to replace everything but the first two letters with the string
18-
# "gilism ain't for wimps"
18+
# "diators are nice in winter"
1919
# this code works in Perl 5, but not in Perl 6 since strings are immutable
20-
# substr($string, $offset) = "gilism ain't for wimps";
20+
# substr($string, $offset) = "diators are nice in winter";
2121
# say $string;
22-
$string = $string.substr(0, $offset) ~ "gilism ain't for wimps";
22+
$string = $string.substr(0, $offset) ~ "diators are nice in winter";
2323
say $string;
2424

2525
# vim: expandtab shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)