CodeX
Published in

CodeX

Multiple ways to inheritance in Perl

Inspired by my par­ents com­ing to vis­it at the end of the week, I thought I’d write about how Perl class­es can have ​”par­ents” as well, from which they inher­it meth­ods. Although it might seem on the sur­face as though there’s more than one way to do it, these tech­niques all share the same under­ly­ing mechanism.

Where it all BEGINs: @ISA

--

--

--

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

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

Insert Data In Cosmos DB

Git Commit Hash Number Theory

Flow programming - Part II

Drawing of Apply with a pipe from Transform input to a mystery subprocess box

Specification Design Pattern