1MakeMethods::Evaled(3)User Contributed Perl DocumentationMakeMethods::Evaled(3)
2
3
4
6 Class::MakeMethods::Evaled - Make methods with simple string evals
7
9 package MyObject;
10 use Class::MakeMethods::Evaled::Hash (
11 new => 'new',
12 scalar => [ 'foo', 'bar' ],
13 array => 'my_list',
14 hash => 'my_index',
15 );
16
18 This document describes the various subclasses of Class::MakeMethods
19 included under the Evaled::* namespace, and the method types each one
20 provides.
21
22 The Evaled subclasses generate methods using a simple string templating
23 mechanism and basic string evals.
24
25 Calling Conventions
26
27 When you "use" this package, the method names you provide as arguments
28 cause subroutines to be generated and installed in your module.
29
30 See "Calling Conventions" in Class::MakeMethods::Standard for more
31 information.
32
33 Declaration Syntax
34
35 To declare methods, pass in pairs of a method-type name followed by one
36 or more method names.
37
38 Valid method-type names for this package are listed in "METHOD GENERA‐
39 TOR TYPES".
40
41 See "Declaration Syntax" in Class::MakeMethods::Standard and "Parameter
42 Syntax" in Class::MakeMethods::Standard for more information.
43
44 About Evaled Methods
45
47 See Class::MakeMethods for general information about this distribution.
48
49 For distribution, installation, support, copyright and license informa‐
50 tion, see Class::MakeMethods::Docs::ReadMe.
51
52
53
54perl v5.8.8 2004-09-06 MakeMethods::Evaled(3)