Merge all hash references in reverse order.
Dont apply complex merging logic (ignore keys special meaning).
<B>NOTEB>: In all syntax forms spaces between operation and key are optional.
Setting new value unconditionally: Key syntax: =KEY, = KEY, set:KEY, set: KEY
Previous value of KEY will be lost and new value will be set unconditionally. This kind of merging logic applies to any plain keys by default. Passed option simple forces this method for complex keys too.
Setting new value only if no true value still exists: Key syntax: ?=KEY, ?= KEY , ifnone:KEY, ifnone: KEY
If true (from perl point of view) value for this key exists just skip new value assignment. Otherwise assign new value (possible even false).
Prepending new value to existing: Key syntax: +=KEY, += KEY, prepend:KEY, prepend: KEY
Prepend new value to any existing value of key. Raise an exception on an incompatible value types. Scalars will be concatenated, arrays unshifted, hashes traversed deeply in proper order.
Appending new value to existing: Key syntax: =+KEY, =+ KEY, append:KEY, append: KEY
Append new value to any existing value of key. Raise an exception on an incompatible value types. Scalars will be concatenated, arrays pushed, hashes traversed deeply in proper order.
Oleg A. Mamontov, <oleg at mamontov.net>
Please report any bugs or feature requests to bug-hash-union at rt.cpan.org, or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Hash-Union>. I will be notified, and then youll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
o RT: CPANs request tracker
o AnnoCPAN: Annotated CPAN documentation o CPAN Ratings o Search CPAN
Copyright 2009 Oleg A. Mamontov, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|perl v5.20.3||HASH::UNION (3)||2009-02-11|