in reply to Loop once on condition 1, many times on cond. 2?
if ($x eq 'key_1') { DoaBunchOfStuff( $x ); } else { foreach $key (keys %my_hash) { DoaBunchOfStuff( $key ); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Loop once on condition 1, many times on cond. 2?
by GrandFather (Saint) on Oct 09, 2008 at 20:50 UTC |