in reply to Re^2: Converting Moose object to a subclass of itself
in thread Converting Moose object to a subclass of itself
I'll do my best to explain. Basically, my thought is that the methods for each subclass will be different. For example, the method to obtain the database password for a Drupal site is different than the method for obtaining a WordPress database password. Each CMS has a differently named config file and a different way of storing the password in the config file. So, it seems to me, that it would be good to set up two subclasses, one for Drupal and one for WordPress, that have methods specialized for obtaining the database password and other settings.
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Converting Moose object to a subclass of itself
by stevieb (Canon) on Feb 26, 2017 at 23:19 UTC | |
by nysus (Parson) on Feb 26, 2017 at 23:42 UTC | |
by stevieb (Canon) on Feb 27, 2017 at 00:08 UTC | |
by nysus (Parson) on Feb 27, 2017 at 01:05 UTC | |
by stevieb (Canon) on Feb 27, 2017 at 01:19 UTC | |
|