in reply to compare previous and present hash key values
How complex is the "compare" ? Is it just checking if the item exists in the values for the other ID ?
These types of queries are usually much more efficient and readable when done in SQL. using something like :
Of course, you can use perl to build the query and subquery.SELECT item from mytable WHERE ID = '555549' AND item NOT IN (SELECT item from mytable where ID='560834');
Update:
If you really want to examine CURRENT, PREVIOUS and NEXT items in an array, consider using Array::Iterator::BiDirectional.
If your eyes hurt after you drink coffee, you have to take the spoon out of the cup.
-Norm Crosby
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: compare previous and present hash key values
by undisputed (Initiate) on Jan 11, 2014 at 15:15 UTC | |
by NetWallah (Canon) on Jan 11, 2014 at 15:28 UTC | |
by undisputed (Initiate) on Jan 11, 2014 at 15:44 UTC | |
by NetWallah (Canon) on Jan 11, 2014 at 16:57 UTC |