Hello All,
I've run into a problem and am hoping somebody can help me here.
I've got some comments in my script such as:
"line49:#characters: (`'"{}[]()). Something along the lines of a "grep -c" here
line50:#would work well.
line51:#Grep won't work though because it only counts the lines, not the..."
When I run "perl -c script_chkr" I get this:
"String found where operator expected at script_chkr line 51, near "#Grep won'"
(Might be a runaway multi-line '' string starting on line 49) (#1)
String found where operator expected at script_chkr line 51, near "#Grep won'"
(Might be a runaway multi-line '' string starting on line 49)
(Missing semicolon on previous line?)
syntax error at script_chkr line 51, near "#Grep won'"
Bareword found where operator expected at script_chkr line 51, near "#Grep
won't" (#2)
(S) The Perl lexer knows whether to expect a term or an operator. If it
sees what it knows to be a term when it was expecting to see an operator,
it gives you this warning. Usually it indicates that an operator or
delimiter was omitted, such as a semicolon.
(Missing operator before t?)
Unquoted string "lines" may clash with future reserved word at script_chkr line
51 (#3)
..."
Why is this failing? The comments shouldn't cause a script to fail should they?
All help in getting around this little issue greatly appreciated.
Thank you for your help.
-J
I've run into a problem and am hoping somebody can help me here.
I've got some comments in my script such as:
"line49:#characters: (`'"{}[]()). Something along the lines of a "grep -c" here
line50:#would work well.
line51:#Grep won't work though because it only counts the lines, not the..."
When I run "perl -c script_chkr" I get this:
"String found where operator expected at script_chkr line 51, near "#Grep won'"
(Might be a runaway multi-line '' string starting on line 49) (#1)
String found where operator expected at script_chkr line 51, near "#Grep won'"
(Might be a runaway multi-line '' string starting on line 49)
(Missing semicolon on previous line?)
syntax error at script_chkr line 51, near "#Grep won'"
Bareword found where operator expected at script_chkr line 51, near "#Grep
won't" (#2)
(S) The Perl lexer knows whether to expect a term or an operator. If it
sees what it knows to be a term when it was expecting to see an operator,
it gives you this warning. Usually it indicates that an operator or
delimiter was omitted, such as a semicolon.
(Missing operator before t?)
Unquoted string "lines" may clash with future reserved word at script_chkr line
51 (#3)
..."
Why is this failing? The comments shouldn't cause a script to fail should they?
All help in getting around this little issue greatly appreciated.
Thank you for your help.
-J