aboutsummaryrefslogtreecommitdiff
path: root/challenge-001/athanasius/perl5/ch-2.sh
blob: 0759b6357650800d153fb89510c8076f88512f8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
perl -wE "for (1 .. 20) { $p = 0; $q = 0; if (!($_ % 3)) { print
'fizz'; ++$p } if (!($_ % 5)) { say 'buzz'; ++$q; } say '' if $p && !$q;
say $_ if !$p && !$q; }"

#syntax error at -e line 1, near "{  ="
#Unknown regexp modifier "/h" at -e line 1, at end of line
#syntax error at -e line 2, near "++ }"
#Unknown regexp modifier "/h" at -e line 2, at end of line
#syntax error at -e line 2, near "++;"
#syntax error at -e line 2, near "if  &&"
#Unknown regexp modifier "/h" at -e line 3, at end of line
#syntax error at -e line 3, near "! &&"
#Execution of -e aborted due to compilation errors.