aboutsummaryrefslogtreecommitdiffstats
path: root/incdec.pm
diff options
context:
space:
mode:
Diffstat (limited to 'incdec.pm')
-rw-r--r--incdec.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/incdec.pm b/incdec.pm
index 6e1d83f..76ac684 100644
--- a/incdec.pm
+++ b/incdec.pm
@@ -27,7 +27,7 @@ sub incdec {
$point_position ||= 0;
$is_backward ||= 0;
- my $number_regex = '-?([1-9]\d*|0\D|0$)';
+ my $number_regex = q/-?([1-9]\d*|0\D|0$)/;
my $start_position = 0;
my $previous_match_start = 0;