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

From: Roderick A. Anderson (raanders at tsmg.us)
Date: Tue Nov 16 2004 - 21:38:43 GMT


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]

_______________________________________________ maypole mailing list maypole at lists.netthink.co.uk http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT