Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use \x0a instead of \o12 (I find it easier to deal with hex).
This patch may still have a problem in that it chomps only actual
newlines instead of using \n.
  • Loading branch information
pmichaud committed Mar 26, 2009
1 parent 8af4574 commit 5c07c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setting/Any-str.pm
Expand Up @@ -27,7 +27,7 @@ class Any is also {
my $num = 0;

for @.list -> $str is rw {
if $str ~~ /\o12$/ {
if $str ~~ /\x0a$/ {
$str = $str.substr(0, $str.chars - 1);
$num++;
}
Expand Down

0 comments on commit 5c07c7b

Please sign in to comment.