in reply to Re: About the opcodes of Perl
in thread About the opcodes of Perl

Hah,I missed that...

I also found that RETURN alone does something similar:

#define RETURN return (PUTBACK, NORMAL)

Why perl uses so many different ways to do the same thing?

The version I download is 5.14.1,which may not be the newest.

Replies are listed 'Best First'.
Re^3: About the opcodes of Perl
by ikegami (Patriarch) on Sep 02, 2011 at 09:59 UTC
    huh, none of
    RETURNOP(cLOGOP->op_other); RETURNOP(cLOGOP->op_next); RETURN; return NORMAL;
    don't do the same thing. The fourth could probably use a more consistent name, but they other three are rather consistent. I don't see the complain.
Re^3: About the opcodes of Perl
by Anonymous Monk on Sep 02, 2011 at 09:50 UTC

    Why perl uses so many different ways to do the same thing?

    :)

    1) I don't know that it does 2) p5p might know 3) code evolves 4) different strokes 5) similar is not same, they're different 6) olly olly oxen free