[Maypole] -e argument OK isn't numeric in eq (==)

Roderick A. Anderson raanders@tsmg.us
Tue, 16 Nov 2004 13:38:43 -0800


Peter Speltz wrote:

> I'm getting this in my error log all the time and am wondering if it's causing
> weird results.
> 
> -e: Argument "OK" isn't numeric in numeric eq (==) at
> /usr/lib/perl5/site_perl/5.8.3/Maypole.pm line 98, <GEN0> line 3.

Based on my limited perl capabilities.  The line is

    return $status unless $status == OK;

I'd would have thought there would be a warning about a bare word before
this.

I haven't succeeded in getting Maypole installed (too many dependencies
to sort out right now) but my attempts left many of the files in the
.cpan directory.  Therefore I can't debug it any further.  But looking
at the code it looks like call_authenticate or call_exception should be
returning a numeric code but OK isn't.

If you're brave you could edit Maypole.pm and change the == to eq and
single quote the OK ('OK') and see if it runs.  But you're probably
better off waiting for one of the Maypole developers to say what the
_real_ fix is.


Cheers,
Rod
-- 
Roderick A. Anderson
Technology Services Management Group
<http://www.technologyservicesmanagementgroup.com/>
Spokane WA, 99202
---
[This E-mail scanned for viruses by Declude Virus]