Help for this page

Select Code to Download


  1. or download this
    $ perl -MDP -wE'my%x;$x{$_}++ for "iowq john stepy andy anne alic bert
    + stepy anne bert andy step alic andy" =~ m/(\w+)/g;DDumper\%x'
    {   alic             => 2,
    ...
        step             => 1,
        stepy            => 2
        }
    
  2. or download this
    $ perl -MDP -wE'my%x;()="iowq john stepy andy anne alic bert stepy ann
    +e bert andy step alic andy" =~ m/(\w+)(?{$x{$^N}++})/g;DDumper\%x'