MakeMe...:Struct(3pm)
π¦ 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
- ubuntu noble: libclass-makemethods-perl 1.01-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libclass-makemethods-perl 1.01-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libclass-makemethods-perl 1.01-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms