in reply to Checking on live site if subroutine exists
You might want to check $ok or $@. NB: I don't always test in production, but when I do; I use the block form of eval.local $@; my $ok = eval { require q{/path/to/script.pl}; # send code to call it now that we pulled it in... 1; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Checking on live site if subroutine exists
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 |