pgraemer / Data-CamelCase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:Other


Languages

Language:Perl 100.0%