logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Class::MakeMethods::Template::Static - Deprecated name for Global

Description

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

       However, in hindsight, this name was poorly chosen, as it suggests a constant, unchanging value, whereas
       the actual functionality is akin to traditional "global" variables.

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

Name

       Class::MakeMethods::Template::Static - Deprecated name for Global

See Also

       Class::MakeMethods::Template::Global.

perl v5.36.0                                       2022-10-13                 MakeMethods::Template::Static(3pm)

Synopsis

         package MyObject;
         use Class::MakeMethods::Template::Global (
           scalar          => [ 'foo' ]
         );

         package main;

         MyObject->foo('bar')
         print MyObject->foo();
         ...
         print $my_instance->foo(); # same thing

See Also