Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: (jeffa) Re: array newbie...(sigh)

by PrakashK (Pilgrim)
on Mar 15, 2002 at 20:03 UTC ( #152071=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $pation (@occupation) {
       `ps -ef|grep -i $pation|grep -v grep|wc -l`;
    }
    
  2. or download this
    my @programs = qw(netman jobman mailman batchman writer);
    my @all_procs = `ps -ef`;
    ...
    
    print "$_ $counts{$_}," for keys %counts;
    print "\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2015-07-04 07:24 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 (58 votes), past polls