Pass variables around the around method modifier

前端 未结 2 405
你的背包
你的背包 2021-01-24 11:37

Is it possible to pass variables between multiple calls to the around MethodModier? example (that doesn\'t work but hopefully conveys what I want to do)

<         


        
2条回答
  •  悲&欢浪女
    2021-01-24 12:17

    What you are trying to do don't have logic.

    "An around modifier receives the original method as its first argument, then the object, and finally any arguments passed to the method."

    https://metacpan.org/pod/Moose::Manual::MethodModifiers#BEFORE-AFTER-AND-AROUND

提交回复
热议问题