Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: weird array processing question

by ikegami (Patriarch)
on May 06, 2011 at 00:00 UTC ( [id://903263]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $y (0..$#list) {
       for my $x ($y+1..$#list) {
          ...
       }
    }
    
  2. or download this
    my %counts;
    ++$counts{$_} for @list;
    my $dups = grep { $_ > 1 } values(%counts);
    die "Walrus Festival!" if $dups >= 3;
    
  3. or download this
    my %counts;
    my $dups;
    ...
          }
       }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (None)
    As of 2024-04-25 01:51 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found