Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This prints Pid in use for all pids regardless of whether it matches or not.my $xpid = 1234; @procs = $dbh->selectall_arrayref("select spid from v\$process"); if ( grep $xpid, @procs ) { print "Pid is in use : $xpid\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: search an array
by davorg (Chancellor) on May 26, 2006 at 11:10 UTC | |
by Anonymous Monk on May 26, 2006 at 12:49 UTC | |
by Anonymous Monk on May 26, 2006 at 15:04 UTC | |
by Anonymous Monk on May 26, 2006 at 15:13 UTC | |
|
Re: search an array
by jdporter (Paladin) on May 26, 2006 at 11:21 UTC | |
by CountZero (Bishop) on May 26, 2006 at 12:12 UTC | |
by Anonymous Monk on May 26, 2006 at 13:03 UTC | |
by dsheroh (Monsignor) on May 26, 2006 at 21:19 UTC | |
|
Re: search an array
by GrandFather (Saint) on May 26, 2006 at 11:17 UTC | |
|
Re: search an array
by roboticus (Chancellor) on May 26, 2006 at 11:19 UTC | |
by jwkrahn (Abbot) on May 26, 2006 at 11:34 UTC | |
by roboticus (Chancellor) on May 26, 2006 at 11:45 UTC | |
by Anonymous Monk on May 26, 2006 at 13:55 UTC | |
|
Re: search an array
by Limbic~Region (Chancellor) on May 26, 2006 at 13:00 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |