You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Daniel Staal <DS...@usa.net> on 2014/06/13 22:25:02 UTC

Re: Bareword found where operator expected at /usr/local/bin/sa-heatu line 227, near "s/... //r" (fwd)

Got this off-list, might be helpful.

------------ Forwarded Message ------------
Date: June 13, 2014 9:22:21 PM +0200
From: "Christoph (Stucki) von Stuckrad" <st...@math.fu-berlin.de>
To: Tom Robinson <to...@motec.com.au>, Daniel Staal <DS...@usa.net>
Subject: Re: Bareword found where operator expected at 
/usr/local/bin/sa-heatu line 227, near "s/... //r"

Hi! - and Sorry, all my tries to post did bounce.
Seemingly our updated mailsystem changed something.

So directly to you and may be somebody can post it,
if it's useful.

On Fri, 13 Jun 2014, Tom Robinson wrote:
...[errormessage]...

and Daniel Staal
...[tied split into four lines, which will work]...

Try changing

> 227             {printf "%s", ((localtime $twas) =~ s/... //r =~ s/:.. /
> /r);}

to:               {printf("%s", ((localtime $twas) =~ s/... //r =~ s/:.. /
/r));}

There exist cases of ambiguity calling a function with a list of
parameters which themselves are lists and need (...).

Then you fix the interpretation of the parameter list by the extra pair
of (...) around ALL the parameters of printf.

Hope this helps, as I have not tested it, but experienced the
same problem many times in debug prints :-)

Stucki


-- 
Christoph von Stuckrad      * * |nickname |Mail <st...@mi.fu-berlin.de> \
Freie Universitaet Berlin   |/_*|'stucki' |Tel(Mo.,Mi.):+49 30 838-75 459|
Mathematik & Informatik EDV |\ *|if online|  (Di,Do,Fr):+49 30 77 39 6600|
Takustr. 9 / 14195 Berlin   * * |on IRCnet|Fax(home):   +49 30 77 39 6601/


---------- End Forwarded Message ----------