Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add an initial string so that the code example runs
  • Loading branch information
Paul Cochrane committed Jun 9, 2015
1 parent 5557888 commit 939451c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions S32-setting-library/Str.pod
Expand Up @@ -442,6 +442,7 @@ this case the entire rest of the string is returned, whatever is available.
A version of C<substr> that returns a writable reference to a part of a
string variable:

my $string = "one of the characters in the Flinstones is: barney";
$string ~~ /(barney)/;
substr-rw($string, $0.from, $0.to) = "fred";

Expand Down

0 comments on commit 939451c

Please sign in to comment.