in reply to Failing to warn about "Found = in conditional"

Perhaps it would be easier to fix your code?

If you change:

} elsif ($count = 2) { # ERROR HERE

to be:

} elsif ($count == 2) { # ERROR HERE

That just might fix the issue, which is what the error message that you listed seems to be indicating.

Of course, that's just a suggestion.

Replies are listed 'Best First'.
Re^2: Failing to warn about "Found = in conditional"
by FloydATC (Deacon) on Apr 17, 2012 at 06:22 UTC
    I think the OP knows what the warning means, the question is why the warning is missing. He probably spent a fair amount of time finding this error and wants to prevent it from happening again.

    -- Time flies when you don't know what you're doing