MakeMe...:Struct(3pm)

πŸ“¦
version 1.01 Β· 5 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ¦‹ NAME πŸ¦‹

okay so bestie, welcome to the User Contributed Perl Documentation page for MakeMe...:Struct(3pm) β€” it’s literally a Deprecated name for Array, no cap. πŸ’…

✨ SYNOPSIS ✨

here’s the whole vibe check in code, exactly as written:

         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]

πŸ’… DESCRIPTION πŸ’…

earlier versions of this package included a package named Class::MakeMethods::Template::Struct. 🫢

ngl, in hindsight, that name was poorly chosen β€” it’s giving β€œC-style structs” energy, and it suggests some connection there that isn’t really the point. the behavior implemented here 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 β€” iconic for old code, periodt. πŸ‘‘

🌈 SEE ALSO 🌈

  • Class::MakeMethods::Template::Array.

mwah πŸ’– β€” this page is from perl v5.36.0, dated 2022-10-13. πŸŽ€

πŸ“¦ where this page comes from