maxl90 has asked for the wisdom of the Perl Monks concerning the following question:
Its always the same 2 elements too. #2 and #3#Here are a few elements of the hash %prolist = ( '1', 'CMD', '2', '/bin/sh', '3', 'rds', '4', 'SysExec', '5', '/oasis/bin/sysmenu', '6', '/oasis/bin/TS_TextSrvcs', } foreach $val(sort keys(%prolist)){ while(<@list>){ if ("$prolist{$val}" eq "$_" ){ $set = 1; last; } } if ($set == 0){print "NF: $prolist{$val}\n"; } $set = 0; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: loop control
by tachyon (Chancellor) on Feb 04, 2003 at 00:24 UTC | |
|
Re: loop control
by VSarkiss (Monsignor) on Feb 04, 2003 at 03:13 UTC | |
by John M. Dlugosz (Monsignor) on Feb 04, 2003 at 06:27 UTC | |
|
Re: loop control
by dragonchild (Archbishop) on Feb 03, 2003 at 23:26 UTC | |
|
Re: loop control
by steves (Curate) on Feb 03, 2003 at 23:18 UTC | |
|
Re: loop control
by mce (Curate) on Feb 04, 2003 at 14:01 UTC | |
by maxl90 (Sexton) on Feb 04, 2003 at 15:09 UTC | |
by Anonymous Monk on Feb 04, 2003 at 22:04 UTC | |
by VSarkiss (Monsignor) on Feb 04, 2003 at 16:59 UTC | |
by steves (Curate) on Feb 04, 2003 at 17:14 UTC | |
by VSarkiss (Monsignor) on Feb 04, 2003 at 17:34 UTC | |
|
Re: loop control
by Aristotle (Chancellor) on Feb 05, 2003 at 00:14 UTC | |
by maxl90 (Sexton) on Feb 05, 2003 at 19:01 UTC |