summaryrefslogtreecommitdiff
path: root/lib/WWW/Curl/Easy.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/WWW/Curl/Easy.pm')
-rw-r--r--lib/WWW/Curl/Easy.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/WWW/Curl/Easy.pm b/lib/WWW/Curl/Easy.pm
index 2f0829b..2b91f4c 100644
--- a/lib/WWW/Curl/Easy.pm
+++ b/lib/WWW/Curl/Easy.pm
@@ -5,7 +5,7 @@ use warnings;
use Carp;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $AUTOLOAD);
-$VERSION = '4.11';
+$VERSION = '4.12';
require WWW::Curl;
require Exporter;
@@ -23,6 +23,11 @@ require AutoLoader;
$WWW::Curl::Easy::headers = "";
$WWW::Curl::Easy::content = "";
+sub const_string {
+ my ($self, $constant) = @_;
+ return constant($constant,0);
+}
+
sub AUTOLOAD {
# This AUTOLOAD is used to 'autoload' constants from the constant()