Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: How to count substrings in an array?

by smls (Friar)
on Feb 03, 2013 at 08:11 UTC ( #1016801=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^2: How to count substrings in an array?
Download Code
Re^3: How to count substrings in an array?
by AnomalousMonk (Abbot) on Feb 03, 2013 at 11:20 UTC
    Goatse operator ... isn't mentioned in perlop?

    See links from BooK proposes a new Perl secret operator for info on 'secret' operators.

    ... a way to achieve what this operator does ... without an assigment? I.e. ... inside a map

    See below.

Re^3: How to count substrings in an array?
by LanX (Canon) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016801]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2015-07-02 05:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (29 votes), past polls