Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Count and List Items in a List

by holli (Monsignor)
on Nov 01, 2005 at 16:13 UTC ( #504627=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        if (m/zaps/i) {
            @zapschool = split (/\t/);
            print NEWFILE "$zapschool[4]\n";        
        }
    
  2. or download this
    C:\>perl -naF/\t/ -e "print qq($F[4]\n) if /zaps/" infile>outfile
    
  3. or download this
    C:\>perl -naF/\t/ -e "$hash{$F[4]}++ if /zaps/;END{print qq($_\t$hash{
    +$_}\n) for sort keys %hash}" infile>outfile
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2015-07-31 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (275 votes), past polls