summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-05-26 01:55:50 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-05-26 01:55:50 +0200
commit9898bb516d6c1dd91df907896820d14d72b3ab0f (patch)
treef26920ebfaed9eeea7c638fad9a7d7799a5a2df4
parentb511a4ced9c0e48fdc35db2b0ae9d454e72bf800 (diff)
downloadmum-9898bb516d6c1dd91df907896820d14d72b3ab0f.tar.gz
mum: Convert 'plus' string to integer
-rwxr-xr-xsrc/mum2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mum b/src/mum
index 402053e..a31f45d 100755
--- a/src/mum
+++ b/src/mum
@@ -30,7 +30,7 @@ my $d = qr{
| (?&next) (?{ local %ref = (next => $^R) })
| (?&prev) (?{ local %ref = (prev => $^R) })
)
- ( ([+-] \d+) (?{ local %ref = (%ref, plus => $^N) })
+ ( ([+-] \d+) (?{ local %ref = (%ref, plus => 0+$^N) })
)?
)
(?<grep> g((?&next)) (?{ local %ref = (grep => $^R) })