Sun751 has asked for the wisdom of the Perl Monks concerning the following question:
if ($R_Cinformix) { foreach $id (keys %$HR_Cwnt) { if ($id =~ /.*?\.oracle.*?$/) { delete($$HR_Cwnt{$id}); } } foreach $id (keys %$HR_Cunx) { if ($id =~ /.*?\.oracle.*?$/) { delete($$HR_Cunx{$id}); } } foreach $id (keys %$HR_CScomponent) { if ($id =~ /.*?ORACLE.*?$/) { delete($$HR_CScomponent{$id}); } } foreach $id (keys %$HR_CWcomponent) { if ($id =~ /.*?ORACLE.*?$/) { delete($$HR_CWcomponent{$id}); } } } elsif ($R_Coracle) { foreach $id (keys %$HR_Cwnt) { if ($id =~ /.*?\.informix.*?$/) { delete($$HR_Cwnt{$id}); } } foreach $id (keys %$HR_Cunx) { if ($id =~ /.*?\.informix.*?$/) { delete($$HR_Cunx{$id}); } } foreach $id (keys %$HR_CScomponent) { if ($id =~ /.*?INFORMIX.*?$/) { delete($$HR_CScomponent{$id}); } } foreach $id (keys %$HR_CWcomponent) { if ($id =~ /.*?INFORMIX.*?$/) { delete($$HR_CWcomponent{$id}); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: redudent hash
by cdarke (Prior) on Jun 22, 2009 at 13:05 UTC | |
by markkawika (Monk) on Jun 22, 2009 at 16:53 UTC | |
|
Re: redudent hash
by Transient (Hermit) on Jun 22, 2009 at 13:00 UTC | |
|
Re: redudent hash
by citromatik (Curate) on Jun 22, 2009 at 12:56 UTC |