in reply to grep or exists
(untested)
#!/usr/bin/perl use strict; use warnings; use Proc::ProcessTable; my $p=Proc::ProcessTable->new; my $wanted=1234; print "Found\n" if grep(/^$wanted$/,@{$p->table} );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: grep or exists
by bart (Canon) on May 16, 2006 at 12:44 UTC | |
by merlyn (Sage) on May 16, 2006 at 13:23 UTC | |
|
Re^2: grep or exists
by blazar (Canon) on May 16, 2006 at 12:47 UTC | |
|
Re^2: grep or exists
by Anonymous Monk on May 16, 2006 at 13:15 UTC | |
by blazar (Canon) on May 16, 2006 at 13:24 UTC |