diff options
Diffstat (limited to 'incdec.bash')
| -rw-r--r-- | incdec.bash | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/incdec.bash b/incdec.bash index d00c140..029d4ea 100644 --- a/incdec.bash +++ b/incdec.bash @@ -67,10 +67,15 @@ sub incdec { $line =~ s/(-?\d+)/$1 + $increment_by/e; } - return $line; + return ($line, $start_position); } -my $output = incdec($line, $increment_by, $point_position, $backward); +my ($output, $start_position) = incdec( + $line, + $increment_by, + $point_position, + $backward +); print $output; ' \ -- \ |
