in reply to use module question.
The if.pm module is useful for that,
Make sure that $species is set at compile time (that's probably why it's being ignored).use if $species eq 'H', 'human'; use if $species eq 'M', 'mouse';
This looks like a natural place for inheritance, though. Let Human.pm and Mouse.pm inherit from Mammal.pm, which carries the common subroutines.
After Compline,
Zaxo
|
|---|