Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.01 KB

README.md

File metadata and controls

52 lines (31 loc) · 1.01 KB

Build Status

NAME

Data::CamelCase - camelize data structures recursive

SYNOPSIS

use Data::CamelCase qw(data_camelize data_decamelize)
my $camelized = data_camelize(%opts, { foo_bar => [qw(bar camel_case)]);
# Result:
# { FooBar => ['bar', 'CamelCase'] }
my $decamelized = data_decamelize(%opts, $camelized);
# Result:
# { foo_bar => ['bar', 'camel_case'] }

DESCRIPTION

Data::CamelCase is

METHODS

data_camelize(%opts, $ref)

camelizes a data structure

options: keys_only, vars_only, lcfirst

data_decamelize(%opts, $ref)

decamelize a data structure

options: keys_only, vars_only

AUTHOR

Patrick Grämer <pgraemer@cpan.org>

COPYRIGHT

Copyright 2016- Patrick Grämer

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

String::Camelize