Config::Properties 0.65
Sponsored Links
Config::Properties 0.65 Ranking & Summary
File size:
0.011 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
934
Date added:
2007-04-12
Publisher:
Randy Jay Yarger
Config::Properties 0.65 description
Config::Properties is a Perl module to read and write property files.
SYNOPSIS
use Config::Properties;
# reading...
open PROPS, "< my_config.props"
or die "unable to open configuration file";
my $properties = new Config::Properties();
$properties->load(*PROPS);
$value = $properties->getProperty( $key );
# saving...
open PROPS, "> my_config.props"
or die "unable to open configuration file for writing";
$properties->setProperty( $key, $value );
$properties->format( %s => %s );
$properties->store(*PROPS, $header );
Config::Properties is a near implementation of the java.util.Properties API. It is designed to allow easy reading, writing and manipulation of Java-style property files.
The format of a Java-style property file is that of a key-value pair seperated by either whitespace, the colon (:) character, or the equals (=) character. Whitespace before the key and on either side of the seperator is ignored.
Lines that begin with either a hash (#) or a bang (!) are considered comment lines and ignored.
A backslash () at the end of a line signifies a continuation and the next line is counted as part of the current line (minus the backslash, any whitespace after the backslash, the line break, and any whitespace at the beginning of the next line).
The official references used to determine this format can be found in the Java API docs for java.util.Properties at http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html.
When a property file is saved it is in the format "key=value" for each line. This can be changed by setting the format attribute using either $object->format( $format_string ) or $object->setFormat( $format_string ) (they do the same thing). The format string is fed to printf and must contain exactly two %s format characters. The first will be replaced with the key of the property and the second with the value. The string can contain no other printf control characters, but can be anything else. A newline will be automatically added to the end of the string. You an get the current format string either by using $object->format() (with no arguments) or $object->getFormat().
If a recent version of module Text::Wrap is available, long lines are conveniently wrapped when saving.
SYNOPSIS
use Config::Properties;
# reading...
open PROPS, "< my_config.props"
or die "unable to open configuration file";
my $properties = new Config::Properties();
$properties->load(*PROPS);
$value = $properties->getProperty( $key );
# saving...
open PROPS, "> my_config.props"
or die "unable to open configuration file for writing";
$properties->setProperty( $key, $value );
$properties->format( %s => %s );
$properties->store(*PROPS, $header );
Config::Properties is a near implementation of the java.util.Properties API. It is designed to allow easy reading, writing and manipulation of Java-style property files.
The format of a Java-style property file is that of a key-value pair seperated by either whitespace, the colon (:) character, or the equals (=) character. Whitespace before the key and on either side of the seperator is ignored.
Lines that begin with either a hash (#) or a bang (!) are considered comment lines and ignored.
A backslash () at the end of a line signifies a continuation and the next line is counted as part of the current line (minus the backslash, any whitespace after the backslash, the line break, and any whitespace at the beginning of the next line).
The official references used to determine this format can be found in the Java API docs for java.util.Properties at http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html.
When a property file is saved it is in the format "key=value" for each line. This can be changed by setting the format attribute using either $object->format( $format_string ) or $object->setFormat( $format_string ) (they do the same thing). The format string is fed to printf and must contain exactly two %s format characters. The first will be replaced with the key of the property and the second with the value. The string can contain no other printf control characters, but can be anything else. A newline will be automatically added to the end of the string. You an get the current format string either by using $object->format() (with no arguments) or $object->getFormat().
If a recent version of module Text::Wrap is available, long lines are conveniently wrapped when saving.
Config::Properties 0.65 Screenshot
Config::Properties 0.65 Keywords
PROPS
Properties 0.65
to read and write
read and write
property files
to read
Perl module
format
property
string
line
module
key
Config::Properties
ConfigProperties
Config::Properties 0.65
Bookmark Config::Properties 0.65
Config::Properties 0.65 Copyright
WareSeeker periodically updates pricing and software information of Config::Properties 0.65 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Config::Properties 0.65 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
learning to read and write
how to read and write in japanese
spell to read and write
teaching children to read and write
learn to read and write
sing spell read and write
read and write gold
read and write ntfs on mac
read and write leappad
formatting
property guys
read and write korean
read and write software
rightmove property
mla format
sing spell read and write curriculum
read and write gold software
formative assessment
Related Software
Framework for Contact properties offers quick access to your contacts and also view their status. Free Download
MMDS::Properties Perl module contains flexible properties handling for MMDS. Free Download
WWW::Webrobot::Properties is a Perl module that implements a config format like java.util.Properties. Free Download
DNS::Config is a Perl module with DNS Configuration. Free Download
Config::Std is a Perl module load and save configuration files in a standard format. Free Download
Rsync::Config::Renderer is a Perl module for rsync config rendering. Free Download
Config::Model::ValueComputer is a Perl module that provides configuration value computation. Free Download
Rsync::Config::Comment is a Perl module with comments as objects. Free Download
Latest Software
Popular Software
Favourite Software