http://www.perlmonks.org?node_id=1016801


in reply to Re: How to count substrings in an array?
in thread How to count substrings in an array?

Goatse operator, huh? Any idea why it isn't mentioned in perlop?

Also, is there a way to achieve what this operator does (forced array context) without an assigment? I.e. to use inside a map { ... } without introducing temporary variables.

Replies are listed 'Best First'.
Re^3: How to count substrings in an array?
by LanX (Saint) on Feb 03, 2013 at 12:01 UTC
    > Goatse operator, huh? Any idea why it isn't mentioned in perlop?

    Maybe because the political correct name is now "Rolex operator" ? ;-)

    > I.e. to use inside a map { ... } without introducing temporary variables.

    DB<107> $s="a"x10 => "aaaaaaaaaa" DB<108> scalar ( ()= $s =~ /a/g ) => 10

    Cheers Rolf

      Rolex operator
      Are they renaming the watches to Goatse at the same time to reciprocate?
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
        > Are they renaming the watches to Goatse at the same time to reciprocate?

        Almost, it's a circular swap!

        The watches will be rebranded to "Saturn" and the planet is now called "Goatse" ...

        Cheers Rolf

Re^3: How to count substrings in an array?
by AnomalousMonk (Archbishop) on Feb 03, 2013 at 11:20 UTC