Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Checking on live site if subroutine existsby tobyink (Canon) |
on Mar 30, 2021 at 11:01 UTC ( [id://11130583]=note: print w/replies, xml ) | Need Help?? |
Just a minor comment about this pattern:
Your code to call it is unnecessarily duplicated. Better:
But this can probably be even better written as:
Because require is smart enough to not load the same file twice.
In Section
Seekers of Perl Wisdom
|
|