1MakeMethods::Template::USsterrucCto(n3t)ributed Perl DocMuamkeenMteatthioodns::Template::Struct(3)
2
3
4

NAME

6       Class::MakeMethods::Template::Struct - Deprecated name for Array
7

SYNOPSIS

9         package MyObject;
10         use Class::MakeMethods::Template::Array (
11           new             => [ 'new' ]
12           scalar          => [ 'foo', 'bar' ]
13         );
14
15         package main;
16
17         my $obj = MyObject->new( foo => "Foozle", bar => "Bozzle" );
18         print $obj->foo();            # Prints Foozle
19         $obj->bar("Bamboozle");       # Sets $obj->[1]
20

DESCRIPTION

22       Earlier versions of this package included a package named
23       Class::MakeMethods::Template::Struct.
24
25       However, in hindsight, this name was poorly chosen, as it suggests some
26       connection to C-style structs, where the behavior implemented more sim‐
27       ply parallels the functionality of Template::Hash and the other Generic
28       subclasses.
29
30       This functionality is now provided by Class::MakeMethods::Tem‐
31       plate::Array, of which this is an empty subclass retained to provide
32       backwards compatibility.
33

SEE ALSO

35       Class::MakeMethods::Template::Array.
36
37
38
39perl v5.8.8                       2004-09-06  MakeMethods::Template::Struct(3)
Impressum