[MKDoc-commit] Fix pod errors, increment $VERSION
bruno at mkdoc.demon.co.uk
bruno at mkdoc.demon.co.uk
Wed Nov 2 15:21:26 GMT 2005
Log Message:
-----------
Fix pod errors, increment $VERSION
Modified Files:
--------------
MKDoc_Control_List/lib/MKDoc:
Control_List.pm
-------------- next part --------------
Index: Control_List.pm
===================================================================
RCS file: /var/spool/cvs/MKDoc_Control_List/lib/MKDoc/Control_List.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -Llib/MKDoc/Control_List.pm -Llib/MKDoc/Control_List.pm -u -r1.3 -r1.4
--- lib/MKDoc/Control_List.pm
+++ lib/MKDoc/Control_List.pm
@@ -8,7 +8,7 @@
use strict;
use warnings;
-our $VERSION = '0.3';
+our $VERSION = '0.31';
sub new
@@ -150,7 +150,7 @@
=head1 NAME
-MKDoc::Control_List - Express complex set of rules with control lists
+MKDoc::Control_List - Express complex sets of rules with control lists
=head1 SYNOPSIS
@@ -189,7 +189,7 @@
Your code might look like this:
local $Current_Child = undef;
- my $control_list = new MKDoc::Control_List ( data => 'toy_config.txt' );
+ my $control_list = new MKDoc::Control_List ( file => 'toy_config.txt' );
my %Toys = ();
foreach my $child (all_children)
@@ -217,7 +217,7 @@
RET_VALUE generic_toy "Gizmo"
- RULE gizmo WHEN always_true
+ RULE generic_toy WHEN always_true
=head2 Segregating boys and girls
@@ -237,9 +237,9 @@
RET_VALUE boy_toy "Galaxy Warrior"
RET_VALUE girl_toy "Doll"
- RULE boy_toy WHEN isa_boy
- RULE girl_toy WHEN isa_girl
- RULE gizmo WHEN always_true
+ RULE boy_toy WHEN isa_boy
+ RULE girl_toy WHEN isa_girl
+ RULE generic_toy WHEN always_true
The order of the RULE statements is primordial! The Control List will return
specified values as soon as all the conditions listed after the WHEN keyword
@@ -247,11 +247,11 @@
So if you had:
- RULE gizmo WHEN always_true
- RULE boy_toy WHEN isa_boy
- RULE girl_toy WHEN isa_girl
+ RULE generic_toy WHEN always_true
+ RULE boy_toy WHEN isa_boy
+ RULE girl_toy WHEN isa_girl
-The control list would have ALWAYS returned gizmos no matter what.
+The control list would have ALWAYS returned Gizmos no matter what.
=head2 Segregating the age
@@ -294,7 +294,7 @@
RULE girly_shoes WHEN isa_girl is_8_or_more
RULE boy_toy WHEN isa_boy
RULE girl_toy WHEN isa_girl
- RULE gizmo WHEN always_true
+ RULE generic_toy WHEN always_true
=head2 More configuration
@@ -329,7 +329,7 @@
RULE girly_shoes WHEN isa_girl is_8_or_more
RULE boy_toy WHEN isa_boy
RULE girl_toy WHEN isa_girl
- RULE gizmo WHEN always_true
+ RULE generic_toy WHEN always_true
=head1 CONFIGURATION SYNTAX
More information about the MKDoc-commit
mailing list