in reply to i dont like the way my code looks but work
But this:
looks like it could be simplified to:for (keys %total) { push @matches, $_ if $_ eq "$item"; }
push @matches, $item if exists $total{$item};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: i dont like the way my code looks but work
by alexm (Chaplain) on Jan 27, 2008 at 20:21 UTC | |
by convenientstore (Pilgrim) on Jan 27, 2008 at 22:15 UTC |