summaryrefslogtreecommitdiff
path: root/020/ch1.pl
diff options
context:
space:
mode:
Diffstat (limited to '020/ch1.pl')
-rwxr-xr-x020/ch1.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/020/ch1.pl b/020/ch1.pl
index 6d8140d..0240d6a 100755
--- a/020/ch1.pl
+++ b/020/ch1.pl
@@ -11,5 +11,5 @@ use warnings;
my $str = shift;
my @chunks;
-push @chunks, $1 while ($str =~ /\G((.)\2*)/g);
+push @chunks, $1 while $str =~ /((.)\2*)/g;
print "@chunks\n";