---
name: "Hash::Merge::Extra"
section: "3pm"
platform: "linux"
package: "libhash-merge-extra-perl"
version: "0.06-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Hash::Merge::Extra"
---

# Hash::Merge::Extra(3pm)

Collection of extra behaviors for Hash::Merge

## NAME

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

## VERSION

Version 0.06

## SYNOPSIS

```
    use Hash::Merge qw(merge);
    use Hash::Merge::Extra;
    Hash::Merge::set_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();
```

Only specified behaviors registered if list defined:

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

## 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.

## AUTHOR

Michael Samoglyadov, `"<mixas at cpan.org>"`

## BUGS

Please report any bugs or feature requests to \<https://github.com/mr-mixas/Hash-Merge-Extra.pm/issues\>

## SEE ALSO

Hash::Merge

## 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.
