aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-ConfigReader/pkg-descr
diff options
context:
space:
mode:
authorJames FitzGibbon <jfitz@FreeBSD.org>1996-10-24 07:56:23 +0000
committerJames FitzGibbon <jfitz@FreeBSD.org>1996-10-24 07:56:23 +0000
commit0748ffa3e972ef34e95b9f05027e813838519034 (patch)
treefe6d98fda53981a59ce7b556873a8aea5c2fd762 /devel/p5-ConfigReader/pkg-descr
parent8b761b60a2ea9bc46733059777442a0f57966889 (diff)
downloadports-0748ffa3e972ef34e95b9f05027e813838519034.tar.gz
ports-0748ffa3e972ef34e95b9f05027e813838519034.zip
perl5 module to read directives from a configuration file.
Notes
Notes: svn path=/head/; revision=4094
Diffstat (limited to 'devel/p5-ConfigReader/pkg-descr')
-rw-r--r--devel/p5-ConfigReader/pkg-descr22
1 files changed, 22 insertions, 0 deletions
diff --git a/devel/p5-ConfigReader/pkg-descr b/devel/p5-ConfigReader/pkg-descr
new file mode 100644
index 000000000000..b89adc83c8e1
--- /dev/null
+++ b/devel/p5-ConfigReader/pkg-descr
@@ -0,0 +1,22 @@
+ The ConfigReader library is a set of classes which reads
+ directives from a configuration file. The library is
+ completely object oriented, and it is envisioned that
+ parsers for new styles of configuration files can be
+ easily added.
+
+ ConfigReader::Spec encapsulates a specification for
+ configuration directives. You can specify which
+ directives can be in the configuration file, aliases for
+ the directive, whether the directive is required or has a
+ default value, and how to parse the directive value.
+
+ Here's an example of how one directive might be specified:
+
+ required $spec 'HomePage', 'new URI::URL';
+
+ This defines a required directive called 'HomePage'. To
+ parse the value from the configuration file, the
+ URI::URL::new() method will be called with the string
+ value as its argument.
+
+ use 'perldoc ConfigReader' for more information.