in reply to Now you see it, now you don't

my $class = ref($invocant) || $invocant;
Please, no.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: Now you see it, now you don't
by hardburn (Abbot) on May 29, 2003 at 16:39 UTC

    Perhaps, but you see it everywhere, including the Blue Camel, perltoot, and perlobj. I don't think you can blame people for using it if it shows up without comment in the primary sources of Perl documentation.

    ----
    I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
    -- Schemer

    Note: All code is untested, unless otherwise stated

      Right. All the sources you cite are from One Guy who was not doing OO programming in 1980 (as I was). That's why I am working hard to correct the meme, stamping on it a bit whenever I see it quoted again, and why I wrote perlboot to also go into the distro as a better example.

      -- Randal L. Schwartz, Perl hacker
      Be sure to read my standard disclaimer if this is a reply.

Re: •Re: Now you see it, now you don't
by Mr. Muskrat (Canon) on May 29, 2003 at 16:38 UTC