aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-ConfigReader/pkg-descr
diff options
context:
space:
mode:
authorjfitz <jfitz@FreeBSD.org>1996-10-24 15:56:23 +0800
committerjfitz <jfitz@FreeBSD.org>1996-10-24 15:56:23 +0800
commite9652393d57a5e36cf03b6b2e7db1e26b22ce8ad (patch)
tree6aae6b874928542ac3095097856e91141c8034b5 /devel/p5-ConfigReader/pkg-descr
parent6507a8a04da995e95b9dde6e521c2f7966a05b74 (diff)
downloadfreebsd-ports-gnome-e9652393d57a5e36cf03b6b2e7db1e26b22ce8ad.tar.gz
freebsd-ports-gnome-e9652393d57a5e36cf03b6b2e7db1e26b22ce8ad.tar.zst
freebsd-ports-gnome-e9652393d57a5e36cf03b6b2e7db1e26b22ce8ad.zip
perl5 module to read directives from a configuration file.
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.