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
In reply to Re: use module question.
by Zaxo
in thread use module question.
by Miyah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |