in reply to Re: Strange Regex Behavior
in thread Strange Regex Behavior

Interesting. Similar to your +0, this seems to work:

        a => ($b =~ /(\d+)/ ? "$1" : 0),

Could this be a Perl bug?

Replies are listed 'Best First'.
Re^3: Strange Regex Behavior
by BrowserUk (Patriarch) on Dec 06, 2011 at 06:11 UTC

    It certainly looks that way to me.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?