in reply to Syntax Perl Version support $c = () = $a =~ /\./g

Read: perlsecret - Perl secret operators and constants

(Hint: It's the one right after the "space station" operator)

  • Comment on Re: Syntax Perl Version support $c = () = $a =~ /\./g

Replies are listed 'Best First'.
Re^2: Syntax Perl Version support $c = () = $a =~ /\./g
by AnomalousMonk (Archbishop) on Jul 17, 2018 at 19:04 UTC

    It's also called the "goatse" operator — just don't ask why!


    Give a man a fish:  <%-{-{-{-<

      I think this is supposed to look like an ASCII emoticon for a type of beard called a goatee. But yeah, that is what this is called.

        I thought gazing upon the great goatse was a rite of passage for everyone online. It was a sort of hyper aggressive RickRoll of its day. I guess the wild west days really are on the outs. I noticed you spelled it with two "e"s in another comment; it's just one. It's from the phonetically named domain goatse.cx. Wikipedia has an article without the photo but a detailed description that will allow you to understand the connotation of the =()= if you want to follow up without getting Internet PTSD.

        ... this is supposed to look like an ASCII emoticon for a type of beard called a goatee.

        That's not the story I heard. Google can be your (in this case, perhaps rather ambivalent) friend here, but be careful: some things, once seen, cannot be unseen. :)


        Give a man a fish:  <%-{-{-{-<