bizactuator has asked for the wisdom of the Perl Monks concerning the following question:
I an just wondering if that would actually work? or is that not how to check it?my $_tsub = "SendMultiPartMemberEmailMimeLiteSendGrid"; if(exists &{$_tsub}) { # send code to call it... } else { require "/path/to/the/file/SendMultiPartMemberEmailMimeLiteSen +dGrid.pl"; # send code to call it now that we pulled it in... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Checking on live site if subroutine exists
by LanX (Saint) on Mar 27, 2021 at 01:46 UTC | |
|
Re: Checking on live site if subroutine exists
by tobyink (Canon) on Mar 30, 2021 at 11:01 UTC | |
|
Re: Checking on live site if subroutine exists
by haukex (Archbishop) on Mar 27, 2021 at 07:39 UTC | |
|
Re: Checking on live site if subroutine exists
by ikegami (Patriarch) on Mar 27, 2021 at 05:54 UTC | |
|
Re: Checking on live site if subroutine exists
by perlfan (Parson) on Mar 27, 2021 at 02:24 UTC | |
by bizactuator (Sexton) on Mar 27, 2021 at 02:38 UTC | |
by LanX (Saint) on Mar 27, 2021 at 02:42 UTC | |
by perlfan (Parson) on Mar 27, 2021 at 07:05 UTC | |
|
Re: Checking on live site if subroutine exists ( Module::Loaded Module::Load )
by Anonymous Monk on Mar 27, 2021 at 02:42 UTC |