609 | 609 |
writing and manipulation of Java-style property files.
|
610 | 610 |
|
611 | 611 |
The format of a Java-style property file is that of a key-value pair
|
612 | |
seperated by either whitespace, the colon (:) character, or the equals
|
|
612 |
separated by either whitespace, the colon (:) character, or the equals
|
613 | 613 |
(=) character. Whitespace before the key and on either side of the
|
614 | |
seperator is ignored.
|
|
614 |
separator is ignored.
|
615 | 615 |
|
616 | 616 |
Lines that begin with either a hash (#) or a bang (!) are considered
|
617 | 617 |
comment lines and ignored.
|
|
688 | 688 |
by C<properties> and C<propertyNames> methods.
|
689 | 689 |
|
690 | 690 |
C<alpha> sorts the keys in alphanumeric order. C<keep> keeps the order
|
691 | |
of the properties as added or readed from a file. C<none> returns the
|
|
691 |
of the properties as added or read from a file. C<none> returns the
|
692 | 692 |
properties unordered.
|
693 | 693 |
|
694 | 694 |
=item encoding => $encoding
|
|
814 | 814 |
=item $p-E<gt>setFromTree($tree, $separator, $start)
|
815 | 815 |
|
816 | 816 |
This method sets properties from a tree of Perl hashes and arrays. It
|
817 | |
is the opposite to splitToTree.
|
|
817 |
is the opposite of C<splitToTree>.
|
818 | 818 |
|
819 | 819 |
C<$separator> is the string used to join the parts of the property
|
820 | 820 |
names. The default value is a dot (C<.>).
|
|
897 | 897 |
=head1 AUTHORS
|
898 | 898 |
|
899 | 899 |
C<Config::Properties> was originally developed by Randy Jay Yarger. It
|
900 | |
was mantained for some time by Craig Manley and finally it passed
|
|
900 |
was maintained for some time by Craig Manley and finally it passed
|
901 | 901 |
hands to Salvador FandiE<ntilde>o <sfandino@yahoo.com>, the current
|
902 | 902 |
maintainer.
|
903 | 903 |
|