summaryrefslogtreecommitdiff
path: root/lib/WWW/Curl
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2022-07-25 08:07:52 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2022-07-25 08:07:52 +0900
commit4c915c978459dd95892b86cda79120bef5e49636 (patch)
treebb9f999371eebd583638a8935ba32fcd400a2a6d /lib/WWW/Curl
parentbac347c3605b37a1839937a689e380303a9085a4 (diff)
downloadperl-WWW-Curl-4c915c978459dd95892b86cda79120bef5e49636.tar.gz
perl-WWW-Curl-4c915c978459dd95892b86cda79120bef5e49636.tar.bz2
perl-WWW-Curl-4c915c978459dd95892b86cda79120bef5e49636.zip
Imported Upstream version 4.12upstream/4.12
Diffstat (limited to 'lib/WWW/Curl')
-rw-r--r--lib/WWW/Curl/Easy.pm7
-rw-r--r--lib/WWW/Curl/Form.pm33
2 files changed, 32 insertions, 8 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()
diff --git a/lib/WWW/Curl/Form.pm b/lib/WWW/Curl/Form.pm
index 7ea117f..a2022c7 100644
--- a/lib/WWW/Curl/Form.pm
+++ b/lib/WWW/Curl/Form.pm
@@ -1,13 +1,32 @@
package WWW::Curl::Form;
use strict;
use warnings;
+use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $AUTOLOAD);
-# In development!
-#
-#require WWW::Curl;
-#use vars qw(@ISA @EXPORT_OK);
-#require Exporter;
-#require AutoLoader;
-# @ISA = qw(Exporter DynaLoader);
+$VERSION = '4.12';
+
+require WWW::Curl;
+require Exporter;
+require AutoLoader;
+
+@ISA = qw(Exporter DynaLoader);
+
+@EXPORT = qw(
+CURLFORM_FILE
+CURLFORM_COPYNAME
+CURLFORM_CONTENTTYPE
+);
+
+sub AUTOLOAD {
+
+ # This AUTOLOAD is used to 'autoload' constants from the constant()
+ # XS function.
+
+ ( my $constname = $AUTOLOAD ) =~ s/.*:://;
+ return constant( $constname, 0 );
+}
1;
+
+__END__
+