Hash::Merge::Extra - Collection of extra behaviors for Hash::Merge
Contents
Behaviors
L_ADDITIVE, R_ADDITIVE
Hashes merged, arrays joined, undefined scalars overridden. Left and right precedence.
L_OVERRIDE, R_OVERRIDE
Hashes merged, arrays and scalars overridden. Left and right precedence.
L_REPLACE, R_REPLACE
Nothing merged. One thing simply replaced by another. Left and right precedence.
Bugs
Please report any bugs or feature requests to <https://github.com/mr-mixas/Hash-Merge-Extra.pm/issues>
Export
Nothing is exported.
All behaviors registered in Hash::Merge if used as
use Hash::Merge::Extra;
Nothing registered if passed empty list:
use Hash::Merge::Extra qw();
Only specified behaviors registered if list defined:
use Hash::Merge::Extra qw(L_OVERRIDE R_REPLACE);
License And Copyright
Copyright 2017,2018 Michael Samoglyadov.
This program is free software; you can redistribute it and/or modify it under the terms of either: the
GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See <http://dev.perl.org/licenses/> for more information.
perl v5.40.1 2025-04-10 Hash::Merge::Extra(3pm)
Name
Hash::Merge::Extra - Collection of extra behaviors for Hash::Merge
See Also
Hash::Merge
Synopsis
use Hash::Merge qw(merge);
use Hash::Merge::Extra;
Hash::Merge::set_behavior('R_OVERRIDE');
$result = merge($left, $right);
Version
Version 0.06
