Do require not eval for delayed loading.

This commit is contained in:
Daniel Nichter
2013-06-15 12:31:38 -07:00
parent 5be7c252b8
commit 7950b0d7cd
3 changed files with 13 additions and 12 deletions

View File

@@ -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);

View File

@@ -21,7 +21,7 @@
package Percona::WebAPI::Representation;
eval {
use JSON;
require JSON;
};
require Exporter;