in reply to search an array
The above answers are good.... But why not let the database do the search?
my $xpid = 1234; my $procs = $dbh->selectall_arrayref(" select spid from v\$process where spid = $xpid "); if ( @$procs ) { # was one found? print "Pid is in use : $xpid\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: search an array
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 |