diff options
author | Jesse Luehrs <doy@tozt.net> | 2024-02-27 22:29:09 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2024-02-27 22:29:09 -0500 |
commit | d5e72ac1b3d1aacec097c1d41decbe748c035f06 (patch) | |
tree | e75f879e5cdf3b51eb23ab321eb6e8ec2ce6ea9a /bin/.bin/sum | |
parent | 0179eebc614a5668048b510cb7a0776354c16dc3 (diff) | |
download | conf-d5e72ac1b3d1aacec097c1d41decbe748c035f06.tar.gz conf-d5e72ac1b3d1aacec097c1d41decbe748c035f06.zip |
rearrange some more things
Diffstat (limited to 'bin/.bin/sum')
-rwxr-xr-x | bin/.bin/sum | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/.bin/sum b/bin/.bin/sum new file mode 100755 index 0000000..cf21bfd --- /dev/null +++ b/bin/.bin/sum @@ -0,0 +1,8 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use 5.014; + +use List::Util 'sum'; + +say sum map { s/^([-+\.\d]+).*/$1/r } <>; |