[Catalyst-commits] r8820 - trunk/examples/CatalystAdvent/root/2008

jester at dev.catalyst.perl.org jester at dev.catalyst.perl.org
Thu Dec 11 01:20:47 GMT 2008


Author: jester
Date: 2008-12-11 01:20:47 +0000 (Thu, 11 Dec 2008)
New Revision: 8820

Modified:
   trunk/examples/CatalystAdvent/root/2008/10.pod
Log:
Minor fixes, including getting my name spelled right

Modified: trunk/examples/CatalystAdvent/root/2008/10.pod
===================================================================
--- trunk/examples/CatalystAdvent/root/2008/10.pod	2008-12-11 00:59:10 UTC (rev 8819)
+++ trunk/examples/CatalystAdvent/root/2008/10.pod	2008-12-11 01:20:47 UTC (rev 8820)
@@ -1,12 +1,17 @@
 =head1 Day 10.  Dealing with Config::General's inability to provide single item arrays.
 
-Today's recipe is very quick and simple, but scratches a minor irritation. L<Config::General> (Apache-style) is the default configuration file format, which is great for readability, and the ease with which non-programmers can modify it.  However, it doesn't deal with single item arrays well. That is if you have the following configuration:
+Today's recipe is very quick and simple, but scratches a minor
+irritation. L<Config::General> (Apache-style), the default
+configuration file format for Catalyst, is great for readability,
+and the ease with which non-programmers can modify it.  However, it
+doesn't deal with single item arrays well. That is, suppose you have the
+following configuration:
 
  <some_values>
  want_an_array some data
  </some_values>
 
-But this wil some out as a scalar:
+But this will come out as a scalar:
 
  print $c->{config}->{some_values}
 
@@ -26,7 +31,10 @@
 
 =head2 When it absolutely has to be an array and needs to be able to have a length of 1.
 
-Unfortunately this is not entireley satisfactory as sometimes you need to know the length of the array without cumbersome workarounds.  Enter L<Moose>:
+Unfortunately this is not entirely satisfactory, as sometimes you're
+using a plugin that requires an arrayref even with only one item (and it
+can't be bogus without leading to problems), or if need to know the
+length of the array without cumbersome workarounds. Enter L<Moose>:
 
 
  setup => sub {
@@ -38,7 +46,7 @@
 
 =head1 ACKNOWLEDGEMENTS
 
-Matt Trout (for the code), Jessie Sheidlower (for getting the code out of matt finally)
+Matt Trout (for the code), Jesse Sheidlower (for getting the code out of Matt finally)
 
 =head1 AUTHOR
 




More information about the Catalyst-commits mailing list