vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[bml] r130: replace string-eval with block-eval

Committer: vad
replace string-eval with block-eval
U   trunk/lib/Apache/BML.pm
Modified: trunk/lib/Apache/BML.pm
===================================================================
--- trunk/lib/Apache/BML.pm	2010-08-18 10:19:24 UTC (rev 129)
+++ trunk/lib/Apache/BML.pm	2010-09-09 10:45:34 UTC (rev 130)
@@ -21,7 +21,7 @@
 use File::Spec;
 
 BEGIN {
-    $Apache::BML::HAVE_ZLIB = eval "use Compress::Zlib (); 1;";
+    $Apache::BML::HAVE_ZLIB = eval { require Compress::Zlib; 1};
 }
 
 BEGIN {

Tags: bml, pm, vadvs
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments