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
27       simply parallels the functionality of Template::Hash and the other
28       Generic subclasses.
29
30       This functionality is now provided by
31       Class::MakeMethods::Template::Array, of which this is an empty subclass
32       retained to provide backwards compatibility.
33

SEE ALSO

35       Class::MakeMethods::Template::Array.
36
37
38
39perl v5.32.1                      2021-01-27  MakeMethods::Template::Struct(3)
Impressum