Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Count and List Items in a List

by ikegami (Pope)
on Nov 01, 2005 at 16:09 UTC ( #504625=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<FILE>) {
        @zapschool = split (/\t/);
    ...
            print NEWFILE "$zapschool[4]\n";        
        }
    }
    
  2. or download this
    while (<FILE>) {
        if (m/zaps/i) {
    ...
            print NEWFILE "$zapschool[4]\n";        
        }
    }
    
  3. or download this
    while (<FILE>) {
        if (m/zaps/i) {
    ...
            print NEWFILE "$zapschool\n";        
        }
    }
    
  4. or download this
    my %count;
    
    ...
    foreach (keys(%count)) {
       print NEWFILE "$_: $count{$_}\n";        
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-09-15 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (145 votes), past polls