-
-
27 Nov 2002 16:15:29 UTC
- Distribution: Merge-HashRef
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (120 / 2 / 14)
- Kwalitee
Bus factor: 0- 93.75% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (2.07KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Merge::HashRef - make one hashref out of many!
SYNOPSIS
use Merge::HashRef; my $hashref = merge_hashref($ref1, $ref2, ...)
DESCRIPTION
Recently, I found myself turning lots of hashrefs into a single one. And, I thought, this would be a nice little function to have.
So now you have it too!
merge_hashref
my $hashref = merge_hashref($ref1, $ref2, ...)
This takes a list of hashrefs, and returns you one. Of course, the order you pass your hashrefs in IS important, as later key/value pairs will clobber earlier ones. This is deliberate. This is why I wrote this little module!
All non-hashrefs get removed from the passed-in list. So don't be doing that.
SHOWING YOUR APPRECIATION
There was a thread on london.pm mailing list about working in a vacumn - that it was a bit depressing to keep writing modules but never get any feedback. So, if you use and like this module then please send me an email and make my day.
All it takes is a few little bytes.
(Leon wrote that, not me!)
AUTHOR
Stray Toaster, <coder@stray-toaster.co.uk>
COPYRIGHT AND LICENSE
Copyright 2002 by Stray Toaster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Merge::HashRef, copy and paste the appropriate command in to your terminal.
cpanm Merge::HashRef
perl -MCPAN -e shell install Merge::HashRef
For more information on module installation, please visit the detailed CPAN module installation guide.