package Foo; use strict; use vars '@ISA'; sub new { my($class, %named_params) = @_; push @ISA, $named_params{parent_class}; # rest of the constructor goes here }
In reply to Re: Dynamically setting up inheritence at runtime
by DrHyde
in thread Dynamically setting up inheritence at runtime
by hangon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |