NAME

Hash::Merge::Extra - Collection of extra behaviors for Hash::Merge

VERSION

Version 0.01

SYNOPSIS

use Hash::Merge qw(merge);
use Hash::Merge::Extra;

Hash::Merge::specify_behavior(R_OVERRIDE);

$result = merge($left, $right);

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();

Resister only specified behaviors:

use Hash::Merge::Extra qw(L_OVERRIDE R_REPLACE);

BEHAVIORS

L_OVERRIDE, R_OVERRIDE

Merge hashes, override arrays and scalars. Left and right precedence

L_REPLACE, R_REPLACE

Don't merge, simply replace one thing by another. Left and right precedence.

SEE ALSO

Hash::Merge

LICENSE AND COPYRIGHT

Copyright 2017 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.