Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^3: compare a list against multiple lists

by rjt (Deacon)
on Mar 21, 2013 at 23:28 UTC ( #1024839=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
          abel appears  0 times in  0 files (not counting al.txt)
         baker appears  1 times in  1 files (not counting al.txt)
        camera appears  1 times in  1 files (not counting al.txt)
         fargo appears  4 times in  4 files (not counting al.txt)
        golfer appears  2 times in  2 files (not counting al.txt)
         jerky appears  3 times in  3 files (not counting al.txt)
  2. or download this
    my $name = 'al';
    for my $kw (sort keys $name{$name}) {
        my $files = -1 + keys $kw{$kw}; # Do not include original file
        printf "%10s appears %2d times in %2d files (not counting %s.txt)\
                $kw,         $count,      $files,                 $name;

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2015-11-28 23:02 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls