in reply to Re^2: count number of lines with +
in thread count number of lines with +
String found where operator expected at 2.pl line 2, near "lne '$i++ if /^+ /}{print $i'"
(Do you need to predeclare lne?)
Number found where operator expected at 2.pl line 2, near "'$i++ if /^+ /}{print $i' 1"
(Missing operator before 1?)
syntax error at 2.pl line 2, near "lne '$i++ if /^+ /}{print $i'"
Execution of 2.pl aborted due to compilation errors.