in reply to search an array
--roboticusmy $xpid = 1234; %procs = map {$_ => 0} @{$dbh->selectall_arrayref( "select spid from v\$process")}; if (defined($procs{$xpid})) { print "Pid is in use : $xpid\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: search an array
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 |