Skip to content

Commit

Permalink
[Any-str.pm] added method form of eval
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Masak committed Dec 19, 2009
1 parent 7f1c3fe commit 8dc1895
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/setting/Any-str.pm
Expand Up @@ -191,6 +191,10 @@ B<Note:> partial implementation only
our Str multi method ucfirst() is export {
self gt '' ?? self.substr(0,1).uc ~ self.substr(1) !! ""
}
our multi method eval() {
eval(~self);
}
}
multi sub split($delimiter, $target, $limit = *, :$all) {
Expand Down

0 comments on commit 8dc1895

Please sign in to comment.