in reply to Re^4: Why doesn't perl optimize this?
in thread Why doesn't perl optimize this?

I agree that the compiler can't know in the case you cite. But what about the case I cited?

Replies are listed 'Best First'.
Re^6: Why doesn't perl optimize this?
by LanX (Saint) on Jun 05, 2013 at 02:12 UTC
    > But what about the case I cited?

    It's extremely complicated and risky to cover ALL edge cases. It's not worth it and BrowserUK already told you!

    If you think such code analysis is easy, please better try implementing a JIT compiler for Perl...

    Cheers Rolf

    ( addicted to the Perl Programming Language)