Config-Properties-Commons

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    $cpc->add_property( key2 => [ 'value1', 'value2' ] );

This method sets a new property or adds values to existing properties.
Old properties are not forgotten.

Values can be a scalar or an array-ref for multiple values.

This method can also be called using the addProperty() alias.

delete_property($key)

    $cpc->delete_property('foo');

This method deletes a property specified by $key from the object.

This method can also be called using the clearProperty() or
deleteProperty() aliases.

reset_property( key => 'value' )

This method is equivalent to
delete_property('key'); add_property(key => 'value' ); - which means any
previously set property is forgotten.

This method can also be called using the set_property(), setProperty(),
or changeProperty() aliases.

clear_properties()

    $cpc->clear_properties();

This method deletes all properties loaded.

This method can also be called using the clear() alias.



SEE ALSO


-   Config::Properties
-   PropertiesConfiguration JavaDoc



DEPENDENCIES


-   perl-5.8.1
-   Encode
-   File::Basename
-   File::Slurp
-   File::Spec
-   List::Util
-   Params::Validate
-   String::Util
-   Text::Wrap



BUGS AND LIMITATIONS


Please report any bugs or feature requests at
https://github.com/mithun/perl-config-properties-commons/issues



TODO


Provide support for remembering property format and order when parsed



AUTHOR


Mithun Ayachit mithun@cpan.org



LICENSE AND COPYRIGHT


Copyright (c) 2014, Mithun Ayachit. All rights reserved.

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



( run in 0.698 second using v1.01-cache-2.11-cpan-39bf76dae61 )