mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-08 11:07:58 +00:00
Do require not eval for delayed loading.
This commit is contained in:
@@ -27,8 +27,8 @@ use English qw(-no_match_vars);
|
||||
use constant PTDEBUG => $ENV{PTDEBUG} || 0;
|
||||
|
||||
eval {
|
||||
use LWP;
|
||||
use JSON;
|
||||
require LWP;
|
||||
require JSON;
|
||||
};
|
||||
|
||||
use Scalar::Util qw(blessed);
|
||||
|
@@ -21,7 +21,7 @@
|
||||
package Percona::WebAPI::Representation;
|
||||
|
||||
eval {
|
||||
use JSON;
|
||||
require JSON;
|
||||
};
|
||||
|
||||
require Exporter;
|
||||
|
Reference in New Issue
Block a user