about summary refs log tree commit
diff options
context:
space:
mode:
authorGraham Barr <gbarr@pobox.com>2007-05-21 11:31:49 +0000
committerGraham Barr <gbarr@pobox.com>2009-02-24 10:40:48 -0600
commit5c2de6eebac9b218dde22cbfa5f39d3c83c7cba4 (patch)
treedbc65b473e008ee082f748cf1e01acd0d1ffffbe
parente1e28f8763460617330a0348ae5556fb3dfcd42c (diff)
downloadperl-libnet-5c2de6eebac9b218dde22cbfa5f39d3c83c7cba4.tar.gz
Only call is_utf8 if perl > 5.8.0
-rw-r--r--Net/Cmd.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Net/Cmd.pm b/Net/Cmd.pm
index 355b6c9..a742860 100644
--- a/Net/Cmd.pm
+++ b/Net/Cmd.pm
@@ -22,9 +22,9 @@ BEGIN {
   }
 }
 
-my $doUTF8 = eval { require utf8 };
+my $doUTF8 = ($] > 5.008) && eval { require utf8 };
 
-$VERSION = "2.28";
+$VERSION = "2.29";
 @ISA     = qw(Exporter);
 @EXPORT  = qw(CMD_INFO CMD_OK CMD_MORE CMD_REJECT CMD_ERROR CMD_PENDING);