CodeX
Published in

CodeX

Taming the Moose: Method modifiers instead of overrides in object-​oriented Perl

Last month I wrote about using Moose’s override func­tion to, well, over­ride a superclass's method. Chris Prather on the #moose IRC chan­nel sug­gest­ed soon after that the around method mod­i­fi­er (or its lit­tle sis­ters before and after) might be a bet­ter choice if you're also call­ing the orig­i­nal method inside. He not­ed that ​"at a min­i­mum…

--

--

--

Everything connected with Tech & Code. Follow to join our 900K+ monthly readers

Recommended from Medium

Task 11.3

Bash(and others) things that i use every day

How much does a server cost for a small business?

Adventures with variable stroke width

Greener Unit Tests

Reflecting on the PSM II — Part 2: The Training

Deploy a shared navigational experience across multiple content ecosystems within ibm.com/cloud

Universal Tokenization

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mark Gardner

Mark Gardner

Just another desperate Perl hacker

More from Medium

5 Over 50 Years: Katharine Fuzesi '13

What are Holy Panda Switches: In-depth Explanation

There’s no map in bash…?

34 at 34 for v5.34: Modern Perl features for Perl’s birthday