X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FClass%2FTemplate.pm;h=23a0d5ba83c469446cb9bc8237fa79738a97cfcf;hb=42568e286aff62b9aeb2f25e792e30cec916a66b;hp=e45a5d3f177eb3fd22530795c0feee198838f1de;hpb=36477c247f3c188fb8cc7e276c87b739d3e6ab7c;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Class/Template.pm b/lib/Class/Template.pm index e45a5d3..23a0d5b 100644 --- a/lib/Class/Template.pm +++ b/lib/Class/Template.pm @@ -30,6 +30,19 @@ use strict; Class::Template - struct/member template builder +=head1 SYNOPSIS + + use Class::Template; + struct(name => { key1 => type1, key2 => type2 }); + + package Myobj; + use Class::Template; + members Myobj { key1 => type1, key2 => type2 }; + +=head1 DESCRIPTION + +This module uses perl5 classes to create nested data types. + =head1 EXAMPLES =item * Example 1 @@ -71,7 +84,7 @@ Class::Template - struct/member template builder } =head1 NOTES - + Use '%' if the member should point to an anonymous hash. Use '@' if the member should point to an anonymous array.