adventofcode/2015/01/d1.pl

5 lines
55 B
Perl
Raw Normal View History

2017-12-03 21:25:02 +00:00
use 5.20.0;
say eval <> =~ s/\(/+1/gr =~ s/\)/-1/gr;