To my horror, I noticed that it is MooseX::Methodno longer supported and not recommended.
MooseX::Method
The package is MooseX-Method-Signaturesadvertised as a replacement, but its documentation says: This is ALPHA SOFTWARE. Use at your own risk. Functions are subject to change.
MooseX-Method-Signatures
<whine> What should I do </whine>
Use MooseX::Declareinstead:
MooseX::Declare
use MooseX::Declare; class Foo { has foo => (isa => "Str", is => "rw", default => "foo"); method bar (Str $bar = "bar") { print $self->foo, " says $bar\n"; } } Foo->new->bar;
Source: https://habr.com/ru/post/1714382/More articles:How to save $ .getJSON return value in jQuery - jquerySQL Server добавляет агент задания T-SQL script issue - sqlFacebook wall - facebookHow to add IOperationInvoker to a wcf client - c #Haskell Code Simplification - haskellCocoa app - security issue - objective-cmetaprogramming using stored procedures? - performanceHow to activate JMX on a remote Glassfish server for access using jconsole? - javaProblems integrating BeepBeep and ErlyDB - mysqlLock free array element - javaAll Articles