D
Dave Baldwin
Hi,
I have just moved over to using 1.8 and on a previously working script
I now get
@field = getField (line)
warning: don't put space before argument parentheses
but later on
out << "some string".gsub (/[\s\n]*$/, "")
^
(under the first /)
syntax error (SyntaxError)
Removing the space gets rid of the syntax error or changing the <<
operator to a += give a warning.
I personally like to have the space before an argument parenthesis, but
it seems odd that in one place it deserves a warning and in others it
gets an error.
Dave.
I have just moved over to using 1.8 and on a previously working script
I now get
@field = getField (line)
warning: don't put space before argument parentheses
but later on
out << "some string".gsub (/[\s\n]*$/, "")
^
(under the first /)
syntax error (SyntaxError)
Removing the space gets rid of the syntax error or changing the <<
operator to a += give a warning.
I personally like to have the space before an argument parenthesis, but
it seems odd that in one place it deserves a warning and in others it
gets an error.
Dave.