adventofcode/2015/01/d1.pl
Yanick Champoux 14029d26a5 2015-01
2017-12-03 16:25:02 -05:00

5 lines
55 B
Perl

use 5.20.0;
say eval <> =~ s/\(/+1/gr =~ s/\)/-1/gr;