-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
44 lines (26 loc) · 1011 Bytes
/
README
File metadata and controls
44 lines (26 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Hash-RenameKey version 0.01
===========================
A perl module to recusively process a hash and rename all keys matching a
regex pattern.
INSTALLATION
To install this module type the following:
perl Makefile.PL
make
make test
make install
USAGE
use Hash::RenameKey
my $hr = Hash::RenameKey->new;
$hr->rename_key(\%hash, $old, $new) || die "Unable to rename keys";
The module has a single function, rename_key, which requires three
parameters - a hashref, a string containing the pattern to match and a
string containing the replacement pattern.
The patterns are using in a regex as follows: s/$old/$new/g;
DEPENDENCIES
This module requires these other modules and libraries:
Class::Accessor
COPYRIGHT AND LICENCE
Copyright (C) 2010 by Jason Clifford
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.10.0 or,
at your option, any later version of Perl 5 you may have available.