


MakeMethods::TemUpslearteC:o:nSttrriubcutt(e3dp)PMearkleMDeotchuomdesn:t:aTteimopnlate::Struct(3p)


NNAAMMEE
       Class::MakeMethods::Template::Struct - Deprecated name for Array

SSYYNNOOPPSSIISS
         package MyObject;
         use Class::MakeMethods::Template::Array (
           new             => [ 'new' ]
           scalar          => [ 'foo', 'bar' ]
         );

         package main;

         my $obj = MyObject->new( foo => "Foozle", bar => "Bozzle" );
         print $obj->foo();            # Prints Foozle
         $obj->bar("Bamboozle");       # Sets $obj->[1]

DDEESSCCRRIIPPTTIIOONN
       Earlier versions of this package included a package named
       Class::MakeMethods::Template::Struct.

       However, in hindsight, this name was poorly chosen, as it suggests some
       connection to C-style structs, where the behavior implemented more
       simply parallels the functionality of Template::Hash and the other
       Generic subclasses.

       This functionality is now provided by
       Class::MakeMethods::Template::Array, of which this is an empty subclass
       retained to provide backwards compatibility.

SSEEEE AALLSSOO
       Class::MakeMethods::Template::Array.


























perl v5.12.2                2004-09-06                          1


