in reply to Re: Need advice on hashes and methods
in thread Need advice on hashes and methods
The result would be that I would have cancelled members in the firsthash and new members in the second hash. Right?foreach (keys %firsthash) { if (exists($secondhash{$_})) { delete($firsthash{$_}; } } foreach (keys %secondhash) { if (exists($firsthash{$_})) { delete($secondhash{$_}; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Need advice on hashes and methods
by ptum (Priest) on Aug 15, 2006 at 14:01 UTC | |
by tom2112 (Novice) on Aug 15, 2006 at 14:05 UTC |