Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix bogus use of $0 in capitalize (colomon++)
  • Loading branch information
sorear committed Dec 19, 2011
1 parent 81237b2 commit 80c1f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CORE.setting
Expand Up @@ -456,7 +456,7 @@ my class Cool {
$res;
}
}
method capitalize() { self.lc.subst(:g, /\w+/, { ucfirst $0 }) }
method capitalize() { self.lc.subst(:g, /\w+/, { ucfirst $/ }) }

method index($substring, $pos?) {
my $str = ~self;
Expand Down

0 comments on commit 80c1f80

Please sign in to comment.