MakeMe...:Static(3pm)

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

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