Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Patter Finding

by George_Sherston (Vicar)
on Sep 11, 2001 at 04:53 UTC ( #111640=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $string = "helloworldhellohellohihellohiworld";
    my $length = length $string;
    ...
    }
    $dups{$_} ++ for keys %dups;
    for (keys %dups) {print $dups{$_},' occurrences of "',$_,'"',"\n"}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://111640]
help
Chatterbox?
[Discipulus]: ;=) can be an idea for another killing oneliner..
Eily used google. The lazy internet equivalent of grep
[karlgoethebier]: He!

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2017-07-21 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (320 votes). Check out past polls.