MakeMe...:Static(3pm)
hey bestie π«Ά this page is from the User Contributed Perl Documentation, and the header title vibe is MakeMe...:Static(3pm) β but the actual main-character name is right below. iykyk π
πΈ NAME πΈ
Class::MakeMethods::Template::Static β the deprecated name for Global. periodt.
β¨ SYNOPSIS β¨
okay so here's the exact code situation, no edits, no cap:
package MyObject;
use Class::MakeMethods::Template::Global (
scalar => [ 'foo' ]
);
package main;
MyObject->foo('bar')
print MyObject->foo();
...
print $my_instance->foo(); # same thing
π¦ DESCRIPTION π¦
so earlier versions of this package had a whole package named Class::MakeMethods::Template::Static.
but in hindsight? the name was poorly chosen π because it makes you think of a constant, unchanging value β and that is not the actual functionality, bestie. the actual functionality is akin to traditional "global" variables. it's giving misleading name energy, fr fr.
this functionality is now provided by Class::MakeMethods::Template::Global, and this page's package is an empty subclass of it, retained to provide backwards compatibility. so it's literally just the old name hanging around so older code doesn't break β compatibility queen behavior πβ¨
π SEE ALSO π
Class::MakeMethods::Template::Global.
and that's the whole page, bestie π«Ά footer tea: perl v5.36.0, dated 2022-10-13 for MakeMe...:Static(3pm) β mwah πβ¨
π¦ 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