From 1feda885f250f46e118a58ba774b7e5e485b5f6d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 27 Aug 2012 11:07:53 +0200 Subject: [PATCH] Basis-Module ("Encode") normal mit "use" laden --- SL/LxOfficeConf.pm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/SL/LxOfficeConf.pm b/SL/LxOfficeConf.pm index 3cd462cff..89dbfde12 100644 --- a/SL/LxOfficeConf.pm +++ b/SL/LxOfficeConf.pm @@ -2,15 +2,14 @@ package SL::LxOfficeConf; use strict; +use Encode; + my $environment_initialized; sub safe_require { my ($class, $may_fail); - my $failed; - $failed = !eval { - require Config::Std; - require Encode; - }; + + my $failed = !eval { require Config::Std; }; if ($failed) { if ($may_fail) { @@ -22,7 +21,6 @@ sub safe_require { } Config::Std->import; - Encode->import; return 1; } -- 2.20.1