in reply to "" isn't numeric...

Without strict and warnings, numeric context will convert the empty string to 0, (as it will 'abc' and 'foo'). The real question is whether you're expecting or can tolerate an empty string at that point in your code. You'll need to show the code and say what you're trying to do to get advice on that.

How are you extracting those numbers from your string? You may want to set up an explicit numeric conversion if an empty string is a sane result.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: "" isn't numeric...
by dragonchild (Archbishop) on Oct 14, 2005 at 18:41 UTC
    <nit> Strict has no bearing on the empty string's conversion to 0. Warnings just bitch about it - the empty string is still converted.</nit>

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?