summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/site/lib
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-03-07 22:52:33 +0000
committerKarl Berry <karl@freefriends.org>2020-03-07 22:52:33 +0000
commit11c6e5fc65f26ba5219997d19707b998a9abf26d (patch)
treea1dc8073a679611d3f09c01eda006cc3f6f846b1 /Master/tlpkg/tlperl/site/lib
parenta6593bd4f2eb12ae25540de026f7f9ebcf230a2f (diff)
tl20 perl 5.30.1 for Windows, from Siep
git-svn-id: svn://tug.org/texlive/trunk@54166 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/tlperl/site/lib')
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/Cpanel/JSON/XS.pm104
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/Cpanel/JSON/XS/Type.pm29
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Format.pm403
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language.pm144
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Afar.pm49
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Amharic.pm87
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Austrian.pm36
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Brazilian.pm35
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Bulgarian.pm92
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Chinese.pm36
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Chinese_GB.pm36
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Czech.pm58
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Danish.pm36
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Dutch.pm40
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/English.pm37
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Finnish.pm45
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/French.pm36
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Gedeo.pm51
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/German.pm37
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Greek.pm91
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Hungarian.pm88
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Icelandic.pm36
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Italian.pm36
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Norwegian.pm36
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Oromo.pm37
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Romanian.pm37
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Russian.pm49
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Russian_cp1251.pm39
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Russian_koi8r.pm39
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Sidama.pm37
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Somali.pm62
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Spanish.pm35
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Swedish.pm41
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Tigrinya.pm58
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/TigrinyaEritrean.pm93
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/TigrinyaEthiopian.pm93
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Language/Turkish.pm59
-rw-r--r--Master/tlpkg/tlperl/site/lib/Date/Parse.pm380
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Config.pm4
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Cookies.pm87
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Cookies/Microsoft.pm12
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Cookies/Netscape.pm21
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Daemon.pm943
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Date.pm394
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Headers.pm4
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Headers/Auth.pm4
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Headers/ETag.pm4
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Headers/Util.pm4
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Message.pm5
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Request.pm22
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Request/Common.pm20
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Response.pm4
-rw-r--r--Master/tlpkg/tlperl/site/lib/HTTP/Status.pm4
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Authen/Basic.pm18
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Authen/Digest.pm15
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Authen/Ntlm.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/ConnCache.pm4
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Debug.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Debug/TraceHTTP.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/DebugFile.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/MediaTypes.pm32
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/MemberMixin.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Protocol.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Protocol/cpan.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Protocol/data.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Protocol/file.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Protocol/ftp.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Protocol/gopher.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Protocol/http.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Protocol/loopback.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Protocol/mailto.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Protocol/nntp.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Protocol/nogo.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/RobotUA.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/Simple.pm2
-rw-r--r--Master/tlpkg/tlperl/site/lib/LWP/UserAgent.pm245
-rw-r--r--Master/tlpkg/tlperl/site/lib/Net/HTTP.pm4
-rw-r--r--Master/tlpkg/tlperl/site/lib/Net/HTTP/Methods.pm4
-rw-r--r--Master/tlpkg/tlperl/site/lib/Net/HTTP/NB.pm4
-rw-r--r--Master/tlpkg/tlperl/site/lib/Net/HTTPS.pm4
-rw-r--r--Master/tlpkg/tlperl/site/lib/OLE.pm177
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/Test/Needs.pm163
-rw-r--r--Master/tlpkg/tlperl/site/lib/Time/Zone.pm291
-rw-r--r--Master/tlpkg/tlperl/site/lib/Win32/OLE.pm968
-rw-r--r--Master/tlpkg/tlperl/site/lib/Win32/OLE/Const.pm201
-rw-r--r--Master/tlpkg/tlperl/site/lib/Win32/OLE/Enum.pm95
-rw-r--r--Master/tlpkg/tlperl/site/lib/Win32/OLE/Lite.pm224
-rw-r--r--Master/tlpkg/tlperl/site/lib/Win32/OLE/NEWS.pod380
-rw-r--r--Master/tlpkg/tlperl/site/lib/Win32/OLE/NLS.pm968
-rw-r--r--Master/tlpkg/tlperl/site/lib/Win32/OLE/TPJ.pod798
-rw-r--r--Master/tlpkg/tlperl/site/lib/Win32/OLE/TypeInfo.pm389
-rw-r--r--Master/tlpkg/tlperl/site/lib/Win32/OLE/Variant.pm577
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/auto/Cpanel/JSON/XS/.packlist12
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/auto/Cpanel/JSON/XS/XS.dllbin83456 -> 84992 bytes
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Date/Parse/.packlist37
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Digest/SHA1/.packlist4
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/auto/Digest/SHA1/SHA1.dllbin24064 -> 24064 bytes
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Encode/Locale/.packlist2
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Encode/compat/.packlist8
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/File/Listing/.packlist2
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/File/Which/.packlist2
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/HTML/Parser/.packlist16
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/auto/HTML/Parser/Parser.dllbin52736 -> 52224 bytes
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/HTML/Tagset/.packlist2
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/HTTP/Cookies/.packlist6
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/HTTP/Daemon/.packlist2
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/HTTP/Date/.packlist2
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/HTTP/Message/.packlist20
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/HTTP/Negotiate/.packlist2
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/IO/HTML/.packlist2
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/IO/String/.packlist2
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/auto/JSON/MaybeXS/.packlist2
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/LWP/MediaTypes/.packlist4
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Math/Int64/.packlist10
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/auto/Math/Int64/Int64.dllbin70656 -> 70656 bytes
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Mozilla/CA/.packlist6
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Net/HTTP/.packlist8
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Socket/.packlist4
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/auto/Socket/Socket.dllbin40448 -> 40448 bytes
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Test/Fatal/.packlist2
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/auto/Test/Needs/.packlist2
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Test/RequiresInternet/.packlist2
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Try/Tiny/.packlist2
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/URI/.packlist106
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/WWW/RobotRules/.packlist4
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Win32/API/.packlist14
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/auto/Win32/API/API.dllbin31744 -> 31744 bytes
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/auto/Win32/API/Callback/Callback.dllbin25600 -> 25600 bytes
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Win32/Console/.packlist4
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/auto/Win32/Console/Console.dllbin50176 -> 50176 bytes
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Win32/OLE/.packlist11
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/auto/Win32/OLE/OLE.dllbin135680 -> 0 bytes
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Win32/Shortcut/.packlist4
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/auto/Win32/Shortcut/Shortcut.dllbin52224 -> 52224 bytes
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Win32/TieRegistry/.packlist4
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/Win32API/Registry/.packlist6
-rwxr-xr-xMaster/tlpkg/tlperl/site/lib/auto/Win32API/Registry/Registry.dllbin157184 -> 157184 bytes
-rw-r--r--Master/tlpkg/tlperl/site/lib/auto/libwww/perl/.packlist66
139 files changed, 1571 insertions, 8679 deletions
diff --git a/Master/tlpkg/tlperl/site/lib/Cpanel/JSON/XS.pm b/Master/tlpkg/tlperl/site/lib/Cpanel/JSON/XS.pm
index 6154f649ff8..47df6b4ea71 100755
--- a/Master/tlpkg/tlperl/site/lib/Cpanel/JSON/XS.pm
+++ b/Master/tlpkg/tlperl/site/lib/Cpanel/JSON/XS.pm
@@ -1,5 +1,5 @@
package Cpanel::JSON::XS;
-our $VERSION = '4.09';
+our $VERSION = '4.19';
our $XS_VERSION = $VERSION;
# $VERSION = eval $VERSION;
@@ -36,6 +36,9 @@ Cpanel::JSON::XS - cPanel fork of JSON::XS, fast and correct serializing
# and do the same things, except that you have a pure-perl fallback now.
+ Note that this module will be replaced by a new JSON::Safe module soon,
+ with the same API just guaranteed safe defaults.
+
=head1 DESCRIPTION
This module converts Perl data structures to JSON and vice versa. Its
@@ -118,7 +121,7 @@ B<Changes to JSON::XS>
strings. Cpanel::JSON::XS is a bit slower, but preserves numeric
types better.
-- numbers ending with .0 stay numbers, are not converted to
+- numbers ending with .0 stray numbers, are not converted to
integers. [#63] dual-vars which are represented as number not
integer (42+"bar" != 5.8.9) are now encoded as number (=> 42.0)
because internally it's now a NOK type. However !!1 which is
@@ -173,6 +176,8 @@ B<Changes to JSON::XS>
- #96 locale-insensitive numeric conversion
+ - #154 numeric conversion fixed since 5.22, using the same strtold as perl5.
+
- public maintenance and bugtracker
- use ppport.h, sanify XS.xs comment styles, harness C coding style
@@ -191,7 +196,7 @@ B<Changes to JSON::XS>
decode_json(, allow_nonref) arg.
relaxed implements allow_dupkeys.
-- support all 5 unicode BOM's: UTF-8, UTF-16LE, UTF-16BE, UTF-32LE,
+- support all 5 unicode L<BOM|/BOM>'s: UTF-8, UTF-16LE, UTF-16BE, UTF-32LE,
UTF-32BE, encoding internally to UTF-8.
=cut
@@ -238,13 +243,13 @@ Converts the given Perl data structure to a UTF-8 encoded, binary string
This function call is functionally identical to:
- $json_text = Cpanel::JSON::XS->new->utf8->encode ($perl_scalar)
+ $json_text = Cpanel::JSON::XS->new->utf8->encode ($perl_scalar, $json_type)
Except being faster.
For the type argument see L<Cpanel::JSON::XS::Type>.
-=item $perl_scalar = decode_json $json_text [, $allow_nonref ]
+=item $perl_scalar = decode_json $json_text [, $allow_nonref [, my $json_type ] ]
The opposite of C<encode_json>: expects an UTF-8 (binary) string of an
json reference and tries to parse that as an UTF-8 encoded JSON text,
@@ -252,7 +257,7 @@ returning the resulting reference. Croaks on error.
This function call is functionally identical to:
- $perl_scalar = Cpanel::JSON::XS->new->utf8->decode ($json_text)
+ $perl_scalar = Cpanel::JSON::XS->new->utf8->decode ($json_text, $json_type)
except being faster.
@@ -265,6 +270,8 @@ allow_nonref option will be set and the function will act is described
as in the relaxed RFC 7159 allowing all values such as objects,
arrays, strings, numbers, "null", "true", and "false".
+For the type argument see L<Cpanel::JSON::XS::Type>.
+
=item $is_boolean = Cpanel::JSON::XS::is_bool $scalar
Returns true if the passed scalar represents either C<JSON::XS::true>
@@ -825,6 +832,35 @@ This option does not affect C<decode> in any way.
This option is special to this module, it is not supported by other
encoders. So it is not recommended to use it.
+=item $json = $json->require_types ([$enable])
+
+=item $enable = $json->get_require_types
+
+ $json = $json->require_types([$enable])
+
+If C<$enable> is true (or missing), then C<encode> will require
+either enabled C<type_all_string> or second argument with supplied JSON types.
+See L<Cpanel::JSON::XS::Type>. When C<type_all_string> is not enabled or
+second argument is not provided (or is undef), then C<encode>
+croaks. It also croaks when the type for provided structure in
+C<encode> is incomplete.
+
+=item $json = $json->type_all_string ([$enable])
+
+=item $enable = $json->get_type_all_string
+
+ $json = $json->type_all_string([$enable])
+
+If C<$enable> is true (or missing), then C<encode> will always
+produce stable deterministic JSON string types in resulted output.
+
+When C<$enable> is false, then result of encoded JSON output may be
+different for different Perl versions and may depends on loaded modules.
+
+This is useful it you need deterministic JSON types, independently of used
+Perl version and other modules, but do not want to write complicated type
+definitions for L<Cpanel::JSON::XS::Type>.
+
=item $json = $json->allow_dupkeys ([$enable])
=item $enabled = $json->get_allow_dupkeys
@@ -871,11 +907,13 @@ to do.
The C<TO_JSON> method may safely call die if it wants. If C<TO_JSON>
returns other blessed objects, those will be handled in the same
-way. C<TO_JSON> must take care of not causing an endless recursion cycle
-(== crash) in this case. The name of C<TO_JSON> was chosen because other
-methods called by the Perl core (== not by the user of the object) are
-usually in upper case letters and to avoid collisions with any C<to_json>
-function or method.
+way. C<TO_JSON> must take care of not causing an endless recursion
+cycle (== crash) in this case. The same care must be taken with
+calling encode in stringify overloads (even if this works by luck in
+older perls) or other callbacks. The name of C<TO_JSON> was chosen
+because other methods called by the Perl core (== not by the user of
+the object) are usually in upper case letters and to avoid collisions
+with any C<to_json> function or method.
If C<$enable> is false (the default), then C<encode> will not consider
this type of conversion.
@@ -1066,7 +1104,7 @@ sprintf(%g), but without double quotes.
strings. No QNAN/SNAN/negative NAN support, unified to "nan". Much
easier to detect, but may conflict with valid strings.
-=item $json_text = $json->encode ($perl_scalar)
+=item $json_text = $json->encode ($perl_scalar, $json_type)
Converts the given Perl data structure (a simple scalar or a reference
to a hash or array) to its JSON representation. Simple scalars will be
@@ -1075,7 +1113,9 @@ arrays become JSON arrays and references to hashes become JSON
objects. Undefined Perl values (e.g. C<undef>) become JSON C<null>
values. Neither C<true> nor C<false> values will be generated.
-=item $perl_scalar = $json->decode ($json_text)
+For the type argument see L<Cpanel::JSON::XS::Type>.
+
+=item $perl_scalar = $json->decode ($json_text, my $json_type)
The opposite of C<encode>: expects a JSON text and tries to parse it,
returning the resulting simple scalar or reference. Croaks on error.
@@ -1084,6 +1124,8 @@ JSON numbers and strings become simple Perl scalars. JSON arrays become
Perl arrayrefs and JSON objects become Perl hashrefs. C<true> becomes
C<1>, C<false> becomes C<0> and C<null> becomes C<undef>.
+For the type argument see L<Cpanel::JSON::XS::Type>.
+
=item ($perl_scalar, $characters) = $json->decode_prefix ($json_text)
This works like the C<decode> method, but instead of raising an exception
@@ -1358,6 +1400,9 @@ the above example :).
Detect all unicode B<Byte Order Marks> on decode.
Which are UTF-8, UTF-16LE, UTF-16BE, UTF-32LE and UTF-32BE.
+The BOM encoding is set only for one specific decode call, it does not
+change the state of the JSON object.
+
B<Warning>: With perls older than 5.20 you need load the Encode module
before loading a multibyte BOM, i.e. >= UTF-16. Otherwise an error is
thrown. This is an implementation limitation and might get fixed later.
@@ -1437,7 +1482,10 @@ up to but not including the least significant bit.
=item true, false
-These JSON atoms become C<Cpanel::JSON::XS::true> and
+When C<unblessed_bool> is set to true, then JSON C<true> becomes C<1> and
+JSON C<false> becomes C<0>.
+
+Otherwise these JSON atoms become C<Cpanel::JSON::XS::true> and
C<Cpanel::JSON::XS::false>, respectively. They are C<JSON::PP::Boolean>
objects and are overloaded to act almost exactly like the numbers C<1>
and C<0>. You can check whether a scalar is a JSON boolean by using
@@ -1525,13 +1573,13 @@ These special values become JSON true and JSON false values,
respectively. You can also use C<\1> and C<\0> or C<!0> and C<!1>
directly if you want.
- encode_json [Cpanel::JSON::XS::true, Cpanel::JSON::XS::true] # yields [false,true]
- encode_json [!1, !0] # yields [false,true]
+ encode_json [Cpanel::JSON::XS::false, Cpanel::JSON::XS::true] # yields [false,true]
+ encode_json [!1, !0], [JSON_TYPE_BOOL, JSON_TYPE_BOOL] # yields [false,true]
eq/ne comparisons with true, false:
false is eq to the empty string or the string 'false' or the special
-empty string C<!!0>, i.e. C<SV_NO>, or the numbers 0 or 0.0.
+empty string C<!!0> or C<!1>, i.e. C<SV_NO>, or the numbers 0 or 0.0.
true is eq to the string 'true' or to the special string C<!0>
(i.e. C<SV_YES>) or to the numbers 1 or 1.0.
@@ -1552,7 +1600,17 @@ your own serializer method.
Simple Perl scalars (any scalar that is not a reference) are the most
difficult objects to encode: Cpanel::JSON::XS will encode undefined
-scalars or inf/nan as JSON C<null> values, scalars that have last been
+scalars or inf/nan as JSON C<null> values and other scalars to either
+number or string in non-deterministic way which may be affected or
+changed by Perl version or any other loaded Perl module.
+
+If you want to have stable and deterministic types in JSON encoder then
+use L<Cpanel::JSON::XS::Type>.
+
+Alternative way for deterministic types is to use C<type_all_string>
+method when all perl scalars are encoded to JSON strings.
+
+Non-deterministic behavior is following: scalars that have last been
used in a string context before encoding as JSON strings, and anything
else as number value:
@@ -1661,7 +1719,7 @@ originally were L<URI> objects is lost.
$uri->as_string
}
-=item 2. C<convert_blessed> is enabled and the object has a stringification overload.
+=item 3. C<convert_blessed> is enabled and the object has a stringification overload.
In this case, the overloaded C<""> method of the object is invoked in scalar
context. It must return a single scalar that can be directly encoded into
@@ -1674,11 +1732,11 @@ originally were L<URI> objects is lost.
package URI;
use overload '""' => sub { shift->as_string };
-=item 3. C<allow_blessed> is enabled.
+=item 4. C<allow_blessed> is enabled.
The object will be serialized as a JSON null value.
-=item 4. none of the above
+=item 5. none of the above
If none of the settings are enabled or the respective methods are missing,
C<Cpanel::JSON::XS> throws an exception.
@@ -2220,14 +2278,14 @@ its design is bug-free. If you keep reporting bugs and tests they will
be fixed swiftly, though.
Since the JSON::XS author refuses to use a public bugtracker and
-prefers private emails, we've setup a tracker at RT, so you might want
+prefers private emails, we use the tracker at B<github>, so you might want
to report any issues twice. Once in private to MLEHMANN to be fixed in
JSON::XS and one to our the public tracker. Issues fixed by JSON::XS
with a new release will also be backported to Cpanel::JSON::XS and
5.6.2, as long as cPanel relies on 5.6.2 and Cpanel::JSON::XS as our
serializer of choice.
-L<https://rt.cpan.org/Public/Dist/Display.html?Queue=Cpanel-JSON-XS>
+L<https://github.com/rurban/Cpanel-JSON-XS/issues>
=head1 LICENSE
diff --git a/Master/tlpkg/tlperl/site/lib/Cpanel/JSON/XS/Type.pm b/Master/tlpkg/tlperl/site/lib/Cpanel/JSON/XS/Type.pm
index 9367f1b4fa8..4d70bfd9704 100755
--- a/Master/tlpkg/tlperl/site/lib/Cpanel/JSON/XS/Type.pm
+++ b/Master/tlpkg/tlperl/site/lib/Cpanel/JSON/XS/Type.pm
@@ -83,6 +83,10 @@ does not work reliable for dual vars and scalars which were used in
both numeric and string operations. See L<simple
scalars|Cpanel::JSON::XS/simple scalars>.
+To enforce that specification is always provided use C<require_types>.
+In this case when C<encode> is called without second argument (or is
+undef) then it croaks. It applies recursively for all sub-structures.
+
=head2 JSON type specification for scalars:
=over 4
@@ -170,6 +174,12 @@ JSON encoder chooses one that matches.
Like L<C<json_type_anyof>|/json_type_anyof>, but scalar can be only
perl's C<undef>.
+=back
+
+=head2 Recursive specifications
+
+=over 4
+
=item json_type_weaken
This function can be used as an argument for L</json_type_arrayof>,
@@ -187,6 +197,25 @@ See following example:
json_type_arrayof(JSON_TYPE_STRING),
);
+If you want to encode all perl scalars to JSON string types despite
+how complicated is input perl structure you can define JSON type
+specification for alternatives recursively. It could be defined as:
+
+ my $type = json_type_anyof();
+ $type->[0] = JSON_TYPE_STRING_OR_NULL;
+ $type->[1] = json_type_arrayof(json_type_weaken($type));
+ $type->[2] = json_type_hashof(json_type_weaken($type));
+
+ print encode_json([ 10, "10", { key => 10 } ], $type);
+ # ["10","10",{"key":"10"}]
+
+An alternative solution for encoding all scalars to JSON strings is to
+use C<type_all_string> method of L<Cpanel::JSON::XS> itself:
+
+ my $json = Cpanel::JSON::XS->new->type_all_string;
+ print $json->encode([ 10, "10", { key => 10 } ]);
+ # ["10","10",{"key":"10"}]
+
=back
=head1 AUTHOR
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Format.pm b/Master/tlpkg/tlperl/site/lib/Date/Format.pm
deleted file mode 100644
index 3a1ea90ef1f..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Format.pm
+++ /dev/null
@@ -1,403 +0,0 @@
-# Copyright (c) 1995-2009 Graham Barr. This program is free
-# software; you can redistribute it and/or modify it under the same terms
-# as Perl itself.
-
-package Date::Format;
-
-use strict;
-use vars qw(@EXPORT @ISA $VERSION);
-require Exporter;
-
-$VERSION = "2.24";
-@ISA = qw(Exporter);
-@EXPORT = qw(time2str strftime ctime asctime);
-
-sub time2str ($;$$)
-{
- Date::Format::Generic->time2str(@_);
-}
-
-sub strftime ($\@;$)
-{
- Date::Format::Generic->strftime(@_);
-}
-
-sub ctime ($;$)
-{
- my($t,$tz) = @_;
- Date::Format::Generic->time2str("%a %b %e %T %Y\n", $t, $tz);
-}
-
-sub asctime (\@;$)
-{
- my($t,$tz) = @_;
- Date::Format::Generic->strftime("%a %b %e %T %Y\n", $t, $tz);
-}
-
-##
-##
-##
-
-package Date::Format::Generic;
-
-use vars qw($epoch $tzname);
-use Time::Zone;
-use Time::Local;
-
-sub ctime
-{
- my($me,$t,$tz) = @_;
- $me->time2str("%a %b %e %T %Y\n", $t, $tz);
-}
-
-sub asctime
-{
- my($me,$t,$tz) = @_;
- $me->strftime("%a %b %e %T %Y\n", $t, $tz);
-}
-
-sub _subs
-{
- my $fn;
- $_[1] =~ s/
- %(O?[%a-zA-Z])
- /
- ($_[0]->can("format_$1") || sub { $1 })->($_[0]);
- /sgeox;
-
- $_[1];
-}
-
-sub strftime
-{
- my($pkg,$fmt,$time);
-
- ($pkg,$fmt,$time,$tzname) = @_;
-
- my $me = ref($pkg) ? $pkg : bless [];
-
- if(defined $tzname)
- {
- $tzname = uc $tzname;
-
- $tzname = sprintf("%+05d",$tzname)
- unless($tzname =~ /\D/);
-
- $epoch = timegm(@{$time}[0..5]);
-
- @$me = gmtime($epoch + tz_offset($tzname) - tz_offset());
- }
- else
- {
- @$me = @$time;
- undef $epoch;
- }
-
- _subs($me,$fmt);
-}
-
-sub time2str
-{
- my($pkg,$fmt,$time);
-
- ($pkg,$fmt,$time,$tzname) = @_;
-
- my $me = ref($pkg) ? $pkg : bless [], $pkg;
-
- $epoch = $time;
-
- if(defined $tzname)
- {
- $tzname = uc $tzname;
-
- $tzname = sprintf("%+05d",$tzname)
- unless($tzname =~ /\D/);
-
- $time += tz_offset($tzname);
- @$me = gmtime($time);
- }
- else
- {
- @$me = localtime($time);
- }
- $me->[9] = $time;
- _subs($me,$fmt);
-}
-
-my(@DoW,@MoY,@DoWs,@MoYs,@AMPM,%format,@Dsuf);
-
-@DoW = qw(Sunday Monday Tuesday Wednesday Thursday Friday Saturday);
-
-@MoY = qw(January February March April May June
- July August September October November December);
-
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-
-@AMPM = qw(AM PM);
-
-@Dsuf = (qw(th st nd rd th th th th th th)) x 3;
-@Dsuf[11,12,13] = qw(th th th);
-@Dsuf[30,31] = qw(th st);
-
-%format = ('x' => "%m/%d/%y",
- 'C' => "%a %b %e %T %Z %Y",
- 'X' => "%H:%M:%S",
- );
-
-my @locale;
-my $locale = "/usr/share/lib/locale/LC_TIME/default";
-local *LOCALE;
-
-if(open(LOCALE,"$locale"))
- {
- chop(@locale = <LOCALE>);
- close(LOCALE);
-
- @MoYs = @locale[0 .. 11];
- @MoY = @locale[12 .. 23];
- @DoWs = @locale[24 .. 30];
- @DoW = @locale[31 .. 37];
- @format{"X","x","C"} = @locale[38 .. 40];
- @AMPM = @locale[41 .. 42];
- }
-
-sub wkyr {
- my($wstart, $wday, $yday) = @_;
- $wday = ($wday + 7 - $wstart) % 7;
- return int(($yday - $wday + 13) / 7 - 1);
-}
-
-##
-## these 6 formatting routins need to be *copied* into the language
-## specific packages
-##
-
-my @roman = ('',qw(I II III IV V VI VII VIII IX));
-sub roman {
- my $n = shift;
-
- $n =~ s/(\d)$//;
- my $r = $roman[ $1 ];
-
- if($n =~ s/(\d)$//) {
- (my $t = $roman[$1]) =~ tr/IVX/XLC/;
- $r = $t . $r;
- }
- if($n =~ s/(\d)$//) {
- (my $t = $roman[$1]) =~ tr/IVX/CDM/;
- $r = $t . $r;
- }
- if($n =~ s/(\d)$//) {
- (my $t = $roman[$1]) =~ tr/IVX/M../;
- $r = $t . $r;
- }
- $r;
-}
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-sub format_P { lc($_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0]) }
-
-sub format_d { sprintf("%02d",$_[0]->[3]) }
-sub format_e { sprintf("%2d",$_[0]->[3]) }
-sub format_H { sprintf("%02d",$_[0]->[2]) }
-sub format_I { sprintf("%02d",$_[0]->[2] % 12 || 12)}
-sub format_j { sprintf("%03d",$_[0]->[7] + 1) }
-sub format_k { sprintf("%2d",$_[0]->[2]) }
-sub format_l { sprintf("%2d",$_[0]->[2] % 12 || 12)}
-sub format_L { $_[0]->[4] + 1 }
-sub format_m { sprintf("%02d",$_[0]->[4] + 1) }
-sub format_M { sprintf("%02d",$_[0]->[1]) }
-sub format_q { sprintf("%01d",int($_[0]->[4] / 3) + 1) }
-sub format_s {
- $epoch = timelocal(@{$_[0]}[0..5])
- unless defined $epoch;
- sprintf("%d",$epoch)
-}
-sub format_S { sprintf("%02d",$_[0]->[0]) }
-sub format_U { wkyr(0, $_[0]->[6], $_[0]->[7]) }
-sub format_w { $_[0]->[6] }
-sub format_W { wkyr(1, $_[0]->[6], $_[0]->[7]) }
-sub format_y { sprintf("%02d",$_[0]->[5] % 100) }
-sub format_Y { sprintf("%04d",$_[0]->[5] + 1900) }
-
-sub format_Z {
- my $o = tz_local_offset(timelocal(@{$_[0]}[0..5]));
- defined $tzname ? $tzname : uc tz_name($o, $_[0]->[8]);
-}
-
-sub format_z {
- my $t = timelocal(@{$_[0]}[0..5]);
- my $o = defined $tzname ? tz_offset($tzname, $t) : tz_offset(undef,$t);
- sprintf("%+03d%02d", int($o / 3600), int(abs($o) % 3600) / 60);
-}
-
-sub format_c { &format_x . " " . &format_X }
-sub format_D { &format_m . "/" . &format_d . "/" . &format_y }
-sub format_r { &format_I . ":" . &format_M . ":" . &format_S . " " . &format_p }
-sub format_R { &format_H . ":" . &format_M }
-sub format_T { &format_H . ":" . &format_M . ":" . &format_S }
-sub format_t { "\t" }
-sub format_n { "\n" }
-sub format_o { sprintf("%2d%s",$_[0]->[3],$Dsuf[$_[0]->[3]]) }
-sub format_x { my $f = $format{'x'}; _subs($_[0],$f); }
-sub format_X { my $f = $format{'X'}; _subs($_[0],$f); }
-sub format_C { my $f = $format{'C'}; _subs($_[0],$f); }
-
-sub format_Od { roman(format_d(@_)) }
-sub format_Oe { roman(format_e(@_)) }
-sub format_OH { roman(format_H(@_)) }
-sub format_OI { roman(format_I(@_)) }
-sub format_Oj { roman(format_j(@_)) }
-sub format_Ok { roman(format_k(@_)) }
-sub format_Ol { roman(format_l(@_)) }
-sub format_Om { roman(format_m(@_)) }
-sub format_OM { roman(format_M(@_)) }
-sub format_Oq { roman(format_q(@_)) }
-sub format_Oy { roman(format_y(@_)) }
-sub format_OY { roman(format_Y(@_)) }
-
-sub format_G { int(($_[0]->[9] - 315993600) / 604800) }
-
-1;
-__END__
-
-=head1 NAME
-
-Date::Format - Date formating subroutines
-
-=head1 SYNOPSIS
-
- use Date::Format;
-
- @lt = localtime(time);
-
- print time2str($template, time);
- print strftime($template, @lt);
-
- print time2str($template, time, $zone);
- print strftime($template, @lt, $zone);
-
- print ctime(time);
- print asctime(@lt);
-
- print ctime(time, $zone);
- print asctime(@lt, $zone);
-
-=head1 DESCRIPTION
-
-This module provides routines to format dates into ASCII strings. They
-correspond to the C library routines C<strftime> and C<ctime>.
-
-=over 4
-
-=item time2str(TEMPLATE, TIME [, ZONE])
-
-C<time2str> converts C<TIME> into an ASCII string using the conversion
-specification given in C<TEMPLATE>. C<ZONE> if given specifies the zone
-which the output is required to be in, C<ZONE> defaults to your current zone.
-
-
-=item strftime(TEMPLATE, TIME [, ZONE])
-
-C<strftime> is similar to C<time2str> with the exception that the time is
-passed as an array, such as the array returned by C<localtime>.
-
-=item ctime(TIME [, ZONE])
-
-C<ctime> calls C<time2str> with the given arguments using the
-conversion specification C<"%a %b %e %T %Y\n">
-
-=item asctime(TIME [, ZONE])
-
-C<asctime> calls C<time2str> with the given arguments using the
-conversion specification C<"%a %b %e %T %Y\n">
-
-=back
-
-=head1 MULTI-LANGUAGE SUPPORT
-
-Date::Format is capable of formating into several languages by creating
-a language specific object and calling methods, see L<Date::Language>
-
- my $lang = Date::Language->new('German');
- $lang->time2str("%a %b %e %T %Y\n", time);
-
-I am open to suggestions on this.
-
-=head1 CONVERSION SPECIFICATION
-
-Each conversion specification is replaced by appropriate
-characters as described in the following list. The
-appropriate characters are determined by the LC_TIME
-category of the program's locale.
-
- %% PERCENT
- %a day of the week abbr
- %A day of the week
- %b month abbr
- %B month
- %c MM/DD/YY HH:MM:SS
- %C ctime format: Sat Nov 19 21:05:57 1994
- %d numeric day of the month, with leading zeros (eg 01..31)
- %e like %d, but a leading zero is replaced by a space (eg 1..32)
- %D MM/DD/YY
- %G GPS week number (weeks since January 6, 1980)
- %h month abbr
- %H hour, 24 hour clock, leading 0's)
- %I hour, 12 hour clock, leading 0's)
- %j day of the year
- %k hour
- %l hour, 12 hour clock
- %L month number, starting with 1
- %m month number, starting with 01
- %M minute, leading 0's
- %n NEWLINE
- %o ornate day of month -- "1st", "2nd", "25th", etc.
- %p AM or PM
- %P am or pm (Yes %p and %P are backwards :)
- %q Quarter number, starting with 1
- %r time format: 09:05:57 PM
- %R time format: 21:05
- %s seconds since the Epoch, UCT
- %S seconds, leading 0's
- %t TAB
- %T time format: 21:05:57
- %U week number, Sunday as first day of week
- %w day of the week, numerically, Sunday == 0
- %W week number, Monday as first day of week
- %x date format: 11/19/94
- %X time format: 21:05:57
- %y year (2 digits)
- %Y year (4 digits)
- %Z timezone in ascii. eg: PST
- %z timezone in format -/+0000
-
-C<%d>, C<%e>, C<%H>, C<%I>, C<%j>, C<%k>, C<%l>, C<%m>, C<%M>, C<%q>,
-C<%y> and C<%Y> can be output in Roman numerals by prefixing the letter
-with C<O>, e.g. C<%OY> will output the year as roman numerals.
-
-=head1 LIMITATION
-
-The functions in this module are limited to the time range that can be
-represented by the time_t data type, i.e. 1901-12-13 20:45:53 GMT to
-2038-01-19 03:14:07 GMT.
-
-=head1 AUTHOR
-
-Graham Barr <gbarr@pobox.com>
-
-=head1 COPYRIGHT
-
-Copyright (c) 1995-2009 Graham Barr. This program is free
-software; you can redistribute it and/or modify it under the same terms
-as Perl itself.
-
-=cut
-
-
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language.pm b/Master/tlpkg/tlperl/site/lib/Date/Language.pm
deleted file mode 100644
index 02a05e7186b..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language.pm
+++ /dev/null
@@ -1,144 +0,0 @@
-
-package Date::Language;
-
-use strict;
-use Time::Local;
-use Carp;
-use vars qw($VERSION @ISA);
-require Date::Format;
-
-$VERSION = "1.10";
-@ISA = qw(Date::Format::Generic);
-
-sub new
-{
- my $self = shift;
- my $type = shift || $self;
-
- $type =~ s/^(\w+)$/Date::Language::$1/;
-
- croak "Bad language"
- unless $type =~ /^[\w:]+$/;
-
- eval "require $type"
- or croak $@;
-
- bless [], $type;
-}
-
-# Stop AUTOLOAD being called ;-)
-sub DESTROY {}
-
-sub AUTOLOAD
-{
- use vars qw($AUTOLOAD);
-
- if($AUTOLOAD =~ /::strptime\Z/o)
- {
- my $self = $_[0];
- my $type = ref($self) || $self;
- require Date::Parse;
-
- no strict 'refs';
- *{"${type}::strptime"} = Date::Parse::gen_parser(
- \%{"${type}::DoW"},
- \%{"${type}::MoY"},
- \@{"${type}::Dsuf"},
- 1);
-
- goto &{"${type}::strptime"};
- }
-
- croak "Undefined method &$AUTOLOAD called";
-}
-
-sub str2time
-{
- my $me = shift;
- my @t = $me->strptime(@_);
-
- return undef
- unless @t;
-
- my($ss,$mm,$hh,$day,$month,$year,$zone) = @t;
- my @lt = localtime(time);
-
- $hh ||= 0;
- $mm ||= 0;
- $ss ||= 0;
-
- $month = $lt[4]
- unless(defined $month);
-
- $day = $lt[3]
- unless(defined $day);
-
- $year = ($month > $lt[4]) ? ($lt[5] - 1) : $lt[5]
- unless(defined $year);
-
- return defined $zone ? timegm($ss,$mm,$hh,$day,$month,$year) - $zone
- : timelocal($ss,$mm,$hh,$day,$month,$year);
-}
-
-1;
-
-__END__
-
-
-=head1 NAME
-
-Date::Language - Language specific date formating and parsing
-
-=head1 SYNOPSIS
-
- use Date::Language;
-
- my $lang = Date::Language->new('German');
- $lang->time2str("%a %b %e %T %Y\n", time);
-
-=head1 DESCRIPTION
-
-L<Date::Language> provides objects to parse and format dates for specific languages. Available languages are
-
- Afar French Russian_cp1251
- Amharic Gedeo Russian_koi8r
- Austrian German Sidama
- Brazilian Greek Somali
- Chinese Hungarian Spanish
- Chinese_GB Icelandic Swedish
- Czech Italian Tigrinya
- Danish Norwegian TigrinyaEritrean
- Dutch Oromo TigrinyaEthiopian
- English Romanian Turkish
- Finnish Russian Bulgarian
-
-=head1 METHODS
-
-=over
-
-=item time2str
-
-See L<Date::Format/time2str>
-
-=item strftime
-
-See L<Date::Format/strftime>
-
-=item ctime
-
-See L<Date::Format/ctime>
-
-=item asctime
-
-See L<Date::Format/asctime>
-
-=item str2time
-
-See L<Date::Parse/str2time>
-
-=item strptime
-
-See L<Date::Parse/strptime>
-
-=back
-
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Afar.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Afar.pm
deleted file mode 100644
index f67cf37685c..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Afar.pm
+++ /dev/null
@@ -1,49 +0,0 @@
-##
-## Afar tables
-##
-
-package Date::Language::Afar;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "0.99";
-
-@DoW = qw(Acaada Etleeni Talaata Arbaqa Kamiisi Gumqata Sabti);
-@MoY = (
-"Qunxa Garablu",
-"Kudo",
-"Ciggilta Kudo",
-"Agda Baxis",
-"Caxah Alsa",
-"Qasa Dirri",
-"Qado Dirri",
-"Liiqen",
-"Waysu",
-"Diteli",
-"Ximoli",
-"Kaxxa Garablu"
-);
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = qw(saaku carra);
-
-@Dsuf = (qw(th st nd rd th th th th th th)) x 3;
-@Dsuf[11,12,13] = qw(th th th);
-@Dsuf[30,31] = qw(th st);
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Amharic.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Amharic.pm
deleted file mode 100644
index a79984ecffa..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Amharic.pm
+++ /dev/null
@@ -1,87 +0,0 @@
-##
-## Amharic tables
-##
-
-package Date::Language::Amharic;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.00";
-
-if ( $] >= 5.006 ) {
-@DoW = (
-"\x{12a5}\x{1211}\x{12f5}",
-"\x{1230}\x{129e}",
-"\x{121b}\x{12ad}\x{1230}\x{129e}",
-"\x{1228}\x{1261}\x{12d5}",
-"\x{1210}\x{1219}\x{1235}",
-"\x{12d3}\x{122d}\x{1265}",
-"\x{1245}\x{12f3}\x{121c}"
-);
-@MoY = (
-"\x{1303}\x{1295}\x{12e9}\x{12c8}\x{122a}",
-"\x{134c}\x{1265}\x{1229}\x{12c8}\x{122a}",
-"\x{121b}\x{122d}\x{127d}",
-"\x{12a4}\x{1355}\x{1228}\x{120d}",
-"\x{121c}\x{12ed}",
-"\x{1301}\x{1295}",
-"\x{1301}\x{120b}\x{12ed}",
-"\x{12a6}\x{1308}\x{1235}\x{1275}",
-"\x{1234}\x{1355}\x{1274}\x{121d}\x{1260}\x{122d}",
-"\x{12a6}\x{12ad}\x{1270}\x{12cd}\x{1260}\x{122d}",
-"\x{1296}\x{126c}\x{121d}\x{1260}\x{122d}",
-"\x{12f2}\x{1234}\x{121d}\x{1260}\x{122d}"
-);
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = ( "\x{1320}\x{12cb}\x{1275}", "\x{12a8}\x{1230}\x{12d3}\x{1275}" );
-
-@Dsuf = ("\x{129b}" x 31);
-}
-else {
-@DoW = (
-"እሑድ",
-"ሰኞ",
-"ማክሰኞ",
-"ረቡዕ",
-"áˆáˆ™áˆµ",
-"ዓርብ",
-"ቅዳሜ"
-);
-@MoY = (
-"ጃንዩወሪ",
-"áŒá‰¥áˆ©á‹ˆáˆª",
-"ማርች",
-"ኤá•áˆ¨áˆ",
-"ሜይ",
-"áŒáŠ•",
-"áŒáˆ‹á‹­",
-"ኦገስት",
-"ሴá•á‰´áˆá‰ áˆ­",
-"ኦክተá‹á‰ áˆ­",
-"ኖቬáˆá‰ áˆ­",
-"ዲሴáˆá‰ áˆ­"
-);
-@DoWs = map { substr($_,0,9) } @DoW;
-@MoYs = map { substr($_,0,9) } @MoY;
-@AMPM = ( "ጠዋት", "ከሰዓት" );
-
-@Dsuf = ("ኛ" x 31);
-}
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Austrian.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Austrian.pm
deleted file mode 100644
index 8ff398bd106..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Austrian.pm
+++ /dev/null
@@ -1,36 +0,0 @@
-##
-## Austrian tables
-##
-
-package Date::Language::Austrian;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.01";
-
-@MoY = qw(Jänner Feber März April Mai Juni
- Juli August September Oktober November Dezember);
-@MoYs = qw(Jän Feb Mär Apr Mai Jun Jul Aug Sep Oct Nov Dez);
-@DoW = qw(Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag);
-@DoWs = qw(Son Mon Die Mit Don Fre Sam);
-
-use Date::Language::English ();
-@AMPM = @{Date::Language::English::AMPM};
-@Dsuf = @{Date::Language::English::Dsuf};
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Brazilian.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Brazilian.pm
deleted file mode 100644
index fa4d15fff91..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Brazilian.pm
+++ /dev/null
@@ -1,35 +0,0 @@
-##
-## Brazilian tables, contributed by Christian Tosta (tosta@cce.ufmg.br)
-##
-
-package Date::Language::Brazilian;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.01";
-
-@DoW = qw(Domingo Segunda Terça Quarta Quinta Sexta Sábado);
-@MoY = qw(Janeiro Fevereiro Março Abril Maio Junho
- Julho Agosto Setembro Outubro Novembro Dezembro);
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = qw(AM PM);
-
-@Dsuf = (qw(mo ro do ro to to to mo vo no)) x 3;
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Bulgarian.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Bulgarian.pm
deleted file mode 100644
index cf3d127486e..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Bulgarian.pm
+++ /dev/null
@@ -1,92 +0,0 @@
-##
-## Bulgarian tables contributed by Krasimir Berov
-##
-
-package Date::Language::Bulgarian;
-use strict;
-use warnings;
-use utf8;
-use base qw(Date::Language);
-our (@DoW, @DoWs, @MoY, @MoYs, @AMPM, @Dsuf, %MoY, %DoW, $VERSION);
-$VERSION = "1.01";
-
-@DoW = qw(Ð½ÐµÐ´ÐµÐ»Ñ Ð¿Ð¾Ð½ÐµÐ´ÐµÐ»Ð½Ð¸Ðº вторник ÑÑ€Ñда четвъртък петък Ñъбота);
-@MoY = qw(Ñнуари февруари март април май юни
- юли авгуÑÑ‚ Ñептември октомври ноември декември);
-@DoWs = qw(нд пн вт ÑÑ€ чт пт Ñб);
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = qw(AM PM);
-
-@Dsuf = (qw(ти ви ри ти ти ти ти ми ми ти)) x 3;
-@Dsuf[11,12,13] = qw(ти ти ти);
-@Dsuf[30,31] = qw(ти ви);
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-sub format_o { ($_[0]->[3]<10?' ':'').$_[0]->[3].$Dsuf[$_[0]->[3]] }
-
-1;
-
-__END__
-
-=encoding utf8
-
-=head1 NAME
-
-Date::Language::Bulgarian - localization for Date::Format
-
-=head1 DESCRIPTION
-
-This is Bulgarian localization for Date::Format.
-It is important to note that this module source code is in utf8.
-All strings which it outputs are in utf8, so it is safe to use it
-currently only with English. You are left alone to try and convert
-the output when using different Date::Language::* in the same application.
-This should be addresed in the future.
-
-=head1 SYNOPSIS
-
- use strict;
- use warnings;
- use Date::Language;
- local $\=$/;
- my $template ='%a %b %e %T %Y (%Y-%m-%d %H:%M:%S)';
- my $time=1290883821; #or just use time();
- my @lt = localtime($time);
- my %languages = qw(English GMT German EEST Bulgarian EET);
- binmode(select,':utf8');
-
- foreach my $l(keys %languages){
- my $lang = Date::Language->new($l);
- my $zone = $languages{$l};
- print $/. "$l $zone";
- print $lang->time2str($template, $time);
- print $lang->time2str($template, $time, $zone);
-
- print $lang->strftime($template, \@lt);
- }
-
-=head1 AUTHOR
-
-Krasimir Berov (berov@cpan.org)
-
-=head1 COPYRIGHT
-
-Copyright (c) 2010 Krasimir Berov. This program is free
-software; you can redistribute it and/or modify it under the same terms
-as Perl itself.
-
-=cut
-
-
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Chinese.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Chinese.pm
deleted file mode 100644
index abfb3c05728..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Chinese.pm
+++ /dev/null
@@ -1,36 +0,0 @@
-##
-## English tables
-##
-
-package Date::Language::Chinese;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.00";
-
-@DoW = qw(星期日 星期一 星期二 星期三 星期四 星期五 星期六);
-@MoY = qw(一月 二月 三月 四月 五月 六月
- 七月 八月 ä¹æœˆ å月 å一月 å二月);
-@DoWs = map { $_ } @DoW;
-@MoYs = map { $_ } @MoY;
-@AMPM = qw(ä¸Šåˆ ä¸‹åˆ);
-
-@Dsuf = (qw(æ—¥ æ—¥ æ—¥ æ—¥ æ—¥ æ—¥ æ—¥ æ—¥ æ—¥ æ—¥)) x 3;
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-sub format_o { sprintf("%2d%s",$_[0]->[3],"æ—¥") }
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Chinese_GB.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Chinese_GB.pm
deleted file mode 100644
index 7be05552266..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Chinese_GB.pm
+++ /dev/null
@@ -1,36 +0,0 @@
-##
-## English tables
-##
-
-package Date::Language::Chinese_GB;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.01";
-
-@DoW = qw(ÐÇÆÚÈÕ ÐÇÆÚÒ» ÐÇÆÚ¶þ ÐÇÆÚÈý ÐÇÆÚËÄ ÐÇÆÚÎå ÐÇÆÚÁù);
-@MoY = qw(Ò»ÔÂ ¶þÔÂ ÈýÔÂ ËÄÔÂ ÎåÔÂ ÁùÔÂ
- ÆßÔ °ËÔ ¾ÅÔ ʮÔ ʮһÔ ʮ¶þÔÂ);
-@DoWs = map { $_ } @DoW;
-@MoYs = map { $_ } @MoY;
-@AMPM = qw(ÉÏÎç ÏÂÎç);
-
-@Dsuf = (qw(ÈÕ ÈÕ ÈÕ ÈÕ ÈÕ ÈÕ ÈÕ ÈÕ ÈÕ ÈÕ)) x 3;
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-sub format_o { sprintf("%2d%s",$_[0]->[3],"ÈÕ") }
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Czech.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Czech.pm
deleted file mode 100644
index 756f5c552fc..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Czech.pm
+++ /dev/null
@@ -1,58 +0,0 @@
-##
-## Czech tables
-##
-## Contributed by Honza Pazdziora
-
-package Date::Language::Czech;
-
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @MoY2 @AMPM %MoY %DoW $VERSION);
-@ISA = qw(Date::Language Date::Format::Generic);
-$VERSION = "1.01";
-
-@MoY = qw(leden únor bøezen duben kvìten èerven èervenec srpen záøí
- øíjen listopad prosinec);
-@MoYs = qw(led únor bøe dub kvì èvn èec srp záøí øíj lis pro);
-@MoY2 = @MoY;
-for (@MoY2)
- { s!en$!na! or s!ec$!ce! or s!ad$!adu! or s!or$!ora!; }
-
-@DoW = qw(nedìle pondìlí úterý støeda ètvrtek pátek sobota);
-@DoWs = qw(Ne Po Út St Èt Pá So);
-
-@AMPM = qw(dop. odp.);
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-sub format_d { $_[0]->[3] }
-sub format_m { $_[0]->[4] + 1 }
-sub format_o { $_[0]->[3] . '.' }
-
-sub format_Q { $MoY2[$_[0]->[4]] }
-
-sub time2str {
- my $ref = shift;
- my @a = @_;
- $a[0] =~ s/(%[do]\.?\s?)%B/$1%Q/;
- $ref->SUPER::time2str(@a);
- }
-
-sub strftime {
- my $ref = shift;
- my @a = @_;
- $a[0] =~ s/(%[do]\.?\s?)%B/$1%Q/;
- $ref->SUPER::time2str(@a);
- }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Danish.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Danish.pm
deleted file mode 100644
index c43d08528ef..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Danish.pm
+++ /dev/null
@@ -1,36 +0,0 @@
-##
-## Danish tables
-##
-
-package Date::Language::Danish;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.01";
-
-@MoY = qw(Januar Februar Marts April Maj Juni
- Juli August September Oktober November December);
-@MoYs = qw(Jan Feb Mar Apr Maj Jun Jul Aug Sep Okt Nov Dec);
-@DoW = qw(Søndag Mandag Tirsdag Onsdag Torsdag Fredag Lørdag Søndag);
-@DoWs = qw(Søn Man Tir Ons Tor Fre Lør Søn);
-
-use Date::Language::English ();
-@AMPM = @{Date::Language::English::AMPM};
-@Dsuf = @{Date::Language::English::Dsuf};
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Dutch.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Dutch.pm
deleted file mode 100644
index 219758b4b29..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Dutch.pm
+++ /dev/null
@@ -1,40 +0,0 @@
-##
-## Dutch tables
-## Contributed by Johannes la Poutre <jlpoutre@corp.nl.home.com>
-##
-
-package Date::Language::Dutch;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.02";
-
-@MoY = qw(januari februari maart april mei juni juli
- augustus september oktober november december);
-@MoYs = map(substr($_, 0, 3), @MoY);
-$MoYs[2] = 'mrt'; # mrt is more common (Frank Maas)
-@DoW = map($_ . "dag", qw(zon maan dins woens donder vrij zater));
-@DoWs = map(substr($_, 0, 2), @DoW);
-
-# these aren't normally used...
-@AMPM = qw(VM NM);
-@Dsuf = ('e') x 31;
-
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-sub format_o { sprintf("%2de",$_[0]->[3]) }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/English.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/English.pm
deleted file mode 100644
index 638cb3c2a21..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/English.pm
+++ /dev/null
@@ -1,37 +0,0 @@
-##
-## English tables
-##
-
-package Date::Language::English;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.01";
-
-@DoW = qw(Sunday Monday Tuesday Wednesday Thursday Friday Saturday);
-@MoY = qw(January February March April May June
- July August September October November December);
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = qw(AM PM);
-
-@Dsuf = (qw(th st nd rd th th th th th th)) x 3;
-@Dsuf[11,12,13] = qw(th th th);
-@Dsuf[30,31] = qw(th st);
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Finnish.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Finnish.pm
deleted file mode 100644
index 415b50c73df..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Finnish.pm
+++ /dev/null
@@ -1,45 +0,0 @@
-##
-## Finnish tables
-## Contributed by Matthew Musgrove <muskrat@mindless.com>
-## Corrected by roke
-##
-
-package Date::Language::Finnish;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.01";
-
-# In Finnish, the names of the months and days are only capitalized at the beginning of sentences.
-@MoY = map($_ . "kuu", qw(tammi helmi maalis huhti touko kesä heinä elo syys loka marras joulu));
-@DoW = qw(sunnuntai maanantai tiistai keskiviikko torstai perjantai lauantai);
-
-# it is not customary to use abbreviated names of months or days
-# per Graham's suggestion:
-@MoYs = @MoY;
-@DoWs = @DoW;
-
-# the short form of ordinals
-@Dsuf = ('.') x 31;
-
-# doesn't look like this is normally used...
-@AMPM = qw(ap ip);
-
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-sub format_o { sprintf("%2de",$_[0]->[3]) }
-
-1; \ No newline at end of file
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/French.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/French.pm
deleted file mode 100644
index 91b414c2eb4..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/French.pm
+++ /dev/null
@@ -1,36 +0,0 @@
-##
-## French tables, contributed by Emmanuel Bataille (bem@residents.frmug.org)
-##
-
-package Date::Language::French;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.04";
-
-@DoW = qw(dimanche lundi mardi mercredi jeudi vendredi samedi);
-@MoY = qw(janvier février mars avril mai juin
- juillet août septembre octobre novembre décembre);
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-$MoYs[6] = 'jul';
-@AMPM = qw(AM PM);
-
-@Dsuf = ((qw(er e e e e e e e e e)) x 3, 'er');
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Gedeo.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Gedeo.pm
deleted file mode 100644
index c18ad8cadda..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Gedeo.pm
+++ /dev/null
@@ -1,51 +0,0 @@
-##
-## Gedeo tables
-##
-
-package Date::Language::Gedeo;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "0.99";
-
-@DoW = qw( Sanbbattaa Sanno Masano Roobe Hamusse Arbe Qiddamme);
-@MoY = (
-"Oritto",
-"Birre'a",
-"Onkkollessa",
-"Saddasa",
-"Arrasa",
-"Qammo",
-"Ella",
-"Waacibajje",
-"Canissa",
-"Addolessa",
-"Bittitotessa",
-"Hegeya"
-);
-@DoWs = map { substr($_,0,3) } @DoW;
-$DoWs[0] = "Snb";
-$DoWs[1] = "Sno";
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = qw(gorsa warreti-udumma);
-
-@Dsuf = (qw(th st nd rd th th th th th th)) x 3;
-@Dsuf[11,12,13] = qw(th th th);
-@Dsuf[30,31] = qw(th st);
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/German.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/German.pm
deleted file mode 100644
index 11242c4c46a..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/German.pm
+++ /dev/null
@@ -1,37 +0,0 @@
-##
-## German tables
-##
-
-package Date::Language::German;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.02";
-
-@MoY = qw(Januar Februar März April Mai Juni
- Juli August September Oktober November Dezember);
-@MoYs = qw(Jan Feb Mär Apr Mai Jun Jul Aug Sep Okt Nov Dez);
-@DoW = qw(Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag);
-@DoWs = qw(Son Mon Die Mit Don Fre Sam);
-
-use Date::Language::English ();
-@AMPM = @{Date::Language::English::AMPM};
-@Dsuf = @{Date::Language::English::Dsuf};
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-sub format_o { sprintf("%2d.",$_[0]->[3]) }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Greek.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Greek.pm
deleted file mode 100644
index 00f917ce474..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Greek.pm
+++ /dev/null
@@ -1,91 +0,0 @@
-##
-## Greek tables
-##
-## Traditional date format is: DoW DD{eta} MoY Year (%A %o %B %Y)
-##
-## Matthew Musgrove <muskrat@mindless.com>
-## Translations gratiously provided by Menelaos Stamatelos <men@kwsn.net>
-## This module returns unicode (utf8) encoded characters. You will need to
-## take the necessary steps for this to display correctly.
-##
-
-package Date::Language::Greek;
-
-use utf8;
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.00";
-
-@DoW = (
-"\x{039a}\x{03c5}\x{03c1}\x{03b9}\x{03b1}\x{03ba}\x{03ae}",
-"\x{0394}\x{03b5}\x{03c5}\x{03c4}\x{03ad}\x{03c1}\x{03b1}",
-"\x{03a4}\x{03c1}\x{03af}\x{03c4}\x{03b7}",
-"\x{03a4}\x{03b5}\x{03c4}\x{03ac}\x{03c1}\x{03c4}\x{03b7}",
-"\x{03a0}\x{03ad}\x{03bc}\x{03c0}\x{03c4}\x{03b7}",
-"\x{03a0}\x{03b1}\x{03c1}\x{03b1}\x{03c3}\x{03ba}\x{03b5}\x{03c5}\x{03ae}",
-"\x{03a3}\x{03ac}\x{03b2}\x{03b2}\x{03b1}\x{03c4}\x{03bf}",
-);
-
-@MoY = (
-"\x{0399}\x{03b1}\x{03bd}\x{03bf}\x{03c5}\x{03b1}\x{03c1}\x{03af}\x{03bf}\x{03c5}",
-"\x{03a6}\x{03b5}\x{03b2}\x{03c1}\x{03bf}\x{03c5}\x{03b1}\x{03c1}\x{03af}\x{03bf}\x{03c5}",
-"\x{039c}\x{03b1}\x{03c1}\x{03c4}\x{03af}\x{03bf}\x{03c5}",
-"\x{0391}\x{03c0}\x{03c1}\x{03b9}\x{03bb}\x{03af}\x{03c5}",
-"\x{039c}\x{03b1}\x{0390}\x{03bf}\x{03c5}",
-"\x{0399}\x{03bf}\x{03c5}\x{03bd}\x{03af}\x{03bf}\x{03c5}",
-"\x{0399}\x{03bf}\x{03c5}\x{03bb}\x{03af}\x{03bf}\x{03c5}",
-"\x{0391}\x{03c5}\x{03b3}\x{03bf}\x{03cd}\x{03c3}\x{03c4}\x{03bf}\x{03c5}",
-"\x{03a3}\x{03b5}\x{03c0}\x{03c4}\x{03b5}\x{03bc}\x{03c4}\x{03bf}\x{03c5}",
-"\x{039f}\x{03ba}\x{03c4}\x{03c9}\x{03b2}\x{03c1}\x{03af}\x{03bf}\x{03c5}",
-"\x{039d}\x{03bf}\x{03b5}\x{03bc}\x{03b2}\x{03c1}\x{03af}\x{03bf}\x{03c5}",
-"\x{0394}\x{03b5}\x{03ba}\x{03b5}\x{03bc}\x{03b2}\x{03c1}\x{03bf}\x{03c5}",
-);
-
-@DoWs = (
-"\x{039a}\x{03c5}",
-"\x{0394}\x{03b5}",
-"\x{03a4}\x{03c1}",
-"\x{03a4}\x{03b5}",
-"\x{03a0}\x{03b5}",
-"\x{03a0}\x{03b1}",
-"\x{03a3}\x{03b1}",
-);
-@MoYs = (
-"\x{0399}\x{03b1}\x{03bd}",
-"\x{03a6}\x{03b5}",
-"\x{039c}\x{03b1}\x{03c1}",
-"\x{0391}\x{03c0}\x{03c1}",
-"\x{039c}\x{03b1}",
-"\x{0399}\x{03bf}\x{03c5}\x{03bd}",
-"\x{0399}\x{03bf}\x{03c5}\x{03bb}",
-"\x{0391}\x{03c5}\x{03b3}",
-"\x{03a3}\x{03b5}\x{03c0}",
-"\x{039f}\x{03ba}",
-"\x{039d}\x{03bf}",
-"\x{0394}\x{03b5}",
-);
-
-@AMPM = ("\x{03c0}\x{03bc}", "\x{03bc}\x{03bc}");
-
-@Dsuf = ("\x{03b7}" x 31);
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_o { sprintf("%2d%s",$_[0]->[3],"\x{03b7}") }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
-
-
-
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Hungarian.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Hungarian.pm
deleted file mode 100644
index d9c838d15b9..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Hungarian.pm
+++ /dev/null
@@ -1,88 +0,0 @@
-##
-## Hungarian tables based on English
-##
-#
-# This is a just-because-I-stumbled-across-it
-# -and-my-wife-is-Hungarian release: if Graham or
-# someone adds to docs to Date::Format, I'd be
-# glad to correct bugs and extend as neeed.
-#
-
-package Date::Language::Hungarian;
-
-=head1 NAME
-
-Date::Language::Hungarian - Magyar format for Date::Format
-
-=head1 SYNOPSIS
-
- my $lang = Date::Language->new('Hungarian');
- print $lang->time2str("%a %b %e %T %Y", time);
-
- @lt = localtime(time);
- print $lang->time2str($template, time);
- print $lang->strftime($template, @lt);
-
- print $lang->time2str($template, time, $zone);
- print $lang->strftime($template, @lt, $zone);
-
- print $lang->ctime(time);
- print $lang->asctime(@lt);
-
- print $lang->ctime(time, $zone);
- print $lang->asctime(@lt, $zone);
-
-See L<Date::Format>.
-
-=head1 AUTHOR
-
-Paula Goddard (paula -at- paulacska -dot- com)
-
-=head1 LICENCE
-
-Made available under the same terms as Perl itself.
-
-=cut
-
-use strict;
-use warnings;
-use base "Date::Language";
-use vars qw( @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-$VERSION = "1.01";
-
-@DoW = qw(Vasárnap Hétfõ Kedd Szerda Csütörtök Péntek Szombat);
-@MoY = qw(Január Február Március Április Május Június
- Július Augusztus Szeptember Október November December);
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = qw(DE. DU.);
-
-# There is no 'th or 'nd in Hungarian, just a dot
-@Dsuf = (".") x 31;
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-sub format_P { lc($_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0]) }
-sub format_o { $_[0]->[3].'.' }
-
-
-
-sub format_D { &format_y . "." . &format_m . "." . &format_d }
-
-sub format_y { sprintf("%02d",$_[0]->[5] % 100) }
-sub format_d { sprintf("%02d",$_[0]->[3]) }
-sub format_m { sprintf("%02d",$_[0]->[4] + 1) }
-
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Icelandic.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Icelandic.pm
deleted file mode 100644
index 5ca3ee32099..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Icelandic.pm
+++ /dev/null
@@ -1,36 +0,0 @@
-##
-## Icelandic tables
-##
-
-package Date::Language::Icelandic;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.01";
-
-@MoY = qw(Janúar Febrúar Mars Apríl Maí Júni
- Júli Ágúst September Október Nóvember Desember);
-@MoYs = qw(Jan Feb Mar Apr Maí Jún Júl Ágú Sep Okt Nóv Des);
-@DoW = qw(Sunnudagur Mánudagur Þriðjudagur Miðvikudagur Fimmtudagur Föstudagur Laugardagur Sunnudagur);
-@DoWs = qw(Sun Mán Þri Mið Fim Fös Lau Sun);
-
-use Date::Language::English ();
-@AMPM = @{Date::Language::English::AMPM};
-@Dsuf = @{Date::Language::English::Dsuf};
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Italian.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Italian.pm
deleted file mode 100644
index 6db0a8e67c9..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Italian.pm
+++ /dev/null
@@ -1,36 +0,0 @@
-##
-## Italian tables
-##
-
-package Date::Language::Italian;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.01";
-
-@MoY = qw(Gennaio Febbraio Marzo Aprile Maggio Giugno
- Luglio Agosto Settembre Ottobre Novembre Dicembre);
-@MoYs = qw(Gen Feb Mar Apr Mag Giu Lug Ago Set Ott Nov Dic);
-@DoW = qw(Domenica Lunedi Martedi Mercoledi Giovedi Venerdi Sabato);
-@DoWs = qw(Dom Lun Mar Mer Gio Ven Sab);
-
-use Date::Language::English ();
-@AMPM = @{Date::Language::English::AMPM};
-@Dsuf = @{Date::Language::English::Dsuf};
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Norwegian.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Norwegian.pm
deleted file mode 100644
index bbd997f0b4d..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Norwegian.pm
+++ /dev/null
@@ -1,36 +0,0 @@
-##
-## Norwegian tables
-##
-
-package Date::Language::Norwegian;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.01";
-
-@MoY = qw(Januar Februar Mars April Mai Juni
- Juli August September Oktober November Desember);
-@MoYs = qw(Jan Feb Mar Apr Mai Jun Jul Aug Sep Okt Nov Des);
-@DoW = qw(Søndag Mandag Tirsdag Onsdag Torsdag Fredag Lørdag Søndag);
-@DoWs = qw(Søn Man Tir Ons Tor Fre Lør Søn);
-
-use Date::Language::English ();
-@AMPM = @{Date::Language::English::AMPM};
-@Dsuf = @{Date::Language::English::Dsuf};
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Oromo.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Oromo.pm
deleted file mode 100644
index b6a6230c87d..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Oromo.pm
+++ /dev/null
@@ -1,37 +0,0 @@
-##
-## Oromo tables
-##
-
-package Date::Language::Oromo;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "0.99";
-
-@DoW = qw(Dilbata Wiixata Qibxata Roobii Kamiisa Jimaata Sanbata);
-@MoY = qw(Amajjii Guraandhala Bitooteessa Elba Caamsa Waxabajjii
- Adooleessa Hagayya Fuulbana Onkololeessa Sadaasa Muddee);
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = qw(WD WB);
-
-@Dsuf = (qw(th st nd rd th th th th th th)) x 3;
-@Dsuf[11,12,13] = qw(th th th);
-@Dsuf[30,31] = qw(th st);
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Romanian.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Romanian.pm
deleted file mode 100644
index cbd2c8cbc4d..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Romanian.pm
+++ /dev/null
@@ -1,37 +0,0 @@
-##
-## Italian tables
-##
-
-package Date::Language::Romanian;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.01";
-
-@MoY = qw(ianuarie februarie martie aprilie mai iunie
- iulie august septembrie octombrie noembrie decembrie);
-@DoW = qw(duminica luni marti miercuri joi vineri sambata);
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-
-@AMPM = qw(AM PM);
-
-@Dsuf = ('') x 31;
-
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Russian.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Russian.pm
deleted file mode 100644
index ca9f4142327..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Russian.pm
+++ /dev/null
@@ -1,49 +0,0 @@
-##
-## Russian tables
-##
-## Contributed by Danil Pismenny <dapi@mail.ru>
-
-package Date::Language::Russian;
-
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @MoY2 @AMPM %MoY %DoW $VERSION);
-@ISA = qw(Date::Language Date::Format::Generic);
-$VERSION = "1.01";
-
-@MoY = qw(ñÎ×ÁÒÑ æÅ×ÒÁÌÑ íÁÒÔÁ áÐÒÅÌÑ íÁÑ éÀÎÑ éÀÌÑ á×ÇÕÓÔÁ óÅÎÔÑÂÒÑ ïËÔÑÂÒÑ îÏÑÂÒÑ äÅËÁÂÒÑ);
-@MoY2 = qw(ñÎ×ÁÒØ æÅ×ÒÁÌØ íÁÒÔ áÐÒÅÌØ íÁÊ éÀÎØ éÀÌØ á×ÇÕÓÔ óÅÎÔÑÂÒØ ïËÔÑÂÒØ îÏÑÂÒØ äÅËÁÂÒØ);
-@MoYs = qw(ñÎ× æÅ× íÒÔ áÐÒ íÁÊ éÀÎ éÀÌ á×Ç óÅÎ ïËÔ îÏÑ äÅË);
-
-@DoW = qw(ðÏÎÅÄÅÌØÎÉË ÷ÔÏÒÎÉË óÒÅÄÁ þÅÔ×ÅÒÇ ðÑÔÎÉÃÁ óÕÂÂÏÔÁ ÷ÏÓËÒÅÓÅÎØÅ);
-@DoWs = qw(ðÎ ÷Ô óÒ þÔ ðÔ ó ÷Ó);
-@DoWs2 = qw(ðÎÄ ÷ÔÒ óÒÄ þÔ× ðÔÎ óÂÔ ÷ÓË);
-
-@AMPM = qw(ÄÐ ÐÐ);
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-sub format_d { $_[0]->[3] }
-sub format_m { $_[0]->[4] + 1 }
-sub format_o { $_[0]->[3] . '.' }
-
-sub format_Q { $MoY2[$_[0]->[4]] }
-
-sub str2time {
- my ($self,$value) = @_;
- map {$value=~s/(\s|^)$DoWs2[$_](\s)/$DoWs[$_]$2/ig} (0..6);
- $value=~s/(\s+|^)íÁÒ(\s+)/$1íÒÔ$2/;
- return $self->SUPER::str2time($value);
-}
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Russian_cp1251.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Russian_cp1251.pm
deleted file mode 100644
index cc28e6ed43a..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Russian_cp1251.pm
+++ /dev/null
@@ -1,39 +0,0 @@
-##
-## Russian cp1251
-##
-
-package Date::Language::Russian_cp1251;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.01";
-
-@DoW = qw(Âîñêðåñåíüå Ïîíåäåëüíèê Âòîðíèê Ñðåäà ×åòâåðã Ïÿòíèöà Ñóááîòà);
-@MoY = qw(ßíâàðü Ôåâðàëü Ìàðò Àïðåëü Ìàé Èþíü
- Èþëü Àâãóñò Ñåíòÿáðü Îêòÿáðü Íîÿáðü Äåêàáðü);
-@DoWs = qw(Âñê Ïíä Âòð Ñðä ×òâ Ïòí Ñáò);
-#@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = qw(AM PM);
-
-@Dsuf = ('e') x 31;
-#@Dsuf[11,12,13] = qw(å å å);
-#@Dsuf[30,31] = qw(å å);
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-sub format_o { sprintf("%2de",$_[0]->[3]) }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Russian_koi8r.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Russian_koi8r.pm
deleted file mode 100644
index 53de8d0567b..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Russian_koi8r.pm
+++ /dev/null
@@ -1,39 +0,0 @@
-##
-## Russian koi8r
-##
-
-package Date::Language::Russian_koi8r;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.01";
-
-@DoW = qw(÷ÏÓËÒÅÓÅÎØÅ ðÏÎÅÄÅÌØÎÉË ÷ÔÏÒÎÉË óÒÅÄÁ þÅÔ×ÅÒÇ ðÑÔÎÉÃÁ óÕÂÂÏÔÁ);
-@MoY = qw(ñÎ×ÁÒØ æÅ×ÒÁÌØ íÁÒÔ áÐÒÅÌØ íÁÊ éÀÎØ
- éÀÌØ á×ÇÕÓÔ óÅÎÔÑÂÒØ ïËÔÑÂÒØ îÏÑÂÒØ äÅËÁÂÒØ);
-@DoWs = qw(÷ÓË ðÎÄ ÷ÔÒ óÒÄ þÔ× ðÔÎ óÂÔ);
-#@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = qw(AM PM);
-
-@Dsuf = ('e') x 31;
-#@Dsuf[11,12,13] = qw(Å Å Å);
-#@Dsuf[30,31] = qw(Å Å);
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-sub format_o { sprintf("%2de",$_[0]->[3]) }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Sidama.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Sidama.pm
deleted file mode 100644
index bc26d7c3f09..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Sidama.pm
+++ /dev/null
@@ -1,37 +0,0 @@
-##
-## Sidama tables
-##
-
-package Date::Language::Sidama;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "0.99";
-
-@DoW = qw(Sambata Sanyo Maakisanyo Roowe Hamuse Arbe Qidaame);
-@MoY = qw(January February March April May June
- July August September October November December);
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = qw(soodo hawwaro);
-
-@Dsuf = (qw(th st nd rd th th th th th th)) x 3;
-@Dsuf[11,12,13] = qw(th th th);
-@Dsuf[30,31] = qw(th st);
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Somali.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Somali.pm
deleted file mode 100644
index 5b2496170e9..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Somali.pm
+++ /dev/null
@@ -1,62 +0,0 @@
-##
-## Somali tables
-##
-
-package Date::Language::Somali;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "0.99";
-
-@DoW = qw(Axad Isniin Salaaso Arbaco Khamiis Jimco Sabti);
-@MoY = (
-"Bisha Koobaad",
-"Bisha Labaad",
-"Bisha Saddexaad",
-"Bisha Afraad",
-"Bisha Shanaad",
-"Bisha Lixaad",
-"Bisha Todobaad",
-"Bisha Sideedaad",
-"Bisha Sagaalaad",
-"Bisha Tobnaad",
-"Bisha Kow iyo Tobnaad",
-"Bisha Laba iyo Tobnaad"
-);
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = (
-"Kob",
-"Lab",
-"Sad",
-"Afr",
-"Sha",
-"Lix",
-"Tod",
-"Sid",
-"Sag",
-"Tob",
-"KIT",
-"LIT"
-);
-@AMPM = qw(SN GN);
-
-@Dsuf = (qw(th st nd rd th th th th th th)) x 3;
-@Dsuf[11,12,13] = qw(th th th);
-@Dsuf[30,31] = qw(th st);
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Spanish.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Spanish.pm
deleted file mode 100644
index d464ae78ad1..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Spanish.pm
+++ /dev/null
@@ -1,35 +0,0 @@
-##
-## Spanish tables
-##
-
-package Date::Language::Spanish;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.00";
-
-@DoW = qw(domingo lunes martes miércoles jueves viernes sábado);
-@MoY = qw(enero febrero marzo abril mayo junio
- julio agosto septiembre octubre noviembre diciembre);
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = qw(AM PM);
-
-@Dsuf = ((qw(ro do ro to to to mo vo no mo)) x 3, 'ro');
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Swedish.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Swedish.pm
deleted file mode 100644
index 8f16594ba73..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Swedish.pm
+++ /dev/null
@@ -1,41 +0,0 @@
-##
-## Swedish tables
-## Contributed by Matthew Musgrove <muskrat@mindless.com>
-## Corrected by dempa
-##
-
-package Date::Language::Swedish;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.01";
-
-@MoY = qw(januari februari mars april maj juni juli augusti september oktober november december);
-@MoYs = map { substr($_,0,3) } @MoY;
-@DoW = map($_ . "dagen", qw(sön mån tis ons tors fre lör));
-@DoWs = map { substr($_,0,2) } @DoW;
-
-# the ordinals are not typically used in modern times
-@Dsuf = ('a' x 2, 'e' x 29);
-
-use Date::Language::English ();
-@AMPM = @{Date::Language::English::AMPM};
-
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-sub format_o { sprintf("%2de",$_[0]->[3]) }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Tigrinya.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Tigrinya.pm
deleted file mode 100644
index ce4fcb3a1cb..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Tigrinya.pm
+++ /dev/null
@@ -1,58 +0,0 @@
-##
-## Tigrinya tables
-##
-
-package Date::Language::Tigrinya;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.00";
-
-@DoW = (
-"\x{1230}\x{1295}\x{1260}\x{1275}",
-"\x{1230}\x{1291}\x{12ed}",
-"\x{1230}\x{1209}\x{1235}",
-"\x{1228}\x{1261}\x{12d5}",
-"\x{1213}\x{1219}\x{1235}",
-"\x{12d3}\x{122d}\x{1262}",
-"\x{1240}\x{12f3}\x{121d}"
-);
-@MoY = (
-"\x{1303}\x{1295}\x{12e9}\x{12c8}\x{122a}",
-"\x{134c}\x{1265}\x{1229}\x{12c8}\x{122a}",
-"\x{121b}\x{122d}\x{127d}",
-"\x{12a4}\x{1355}\x{1228}\x{120d}",
-"\x{121c}\x{12ed}",
-"\x{1301}\x{1295}",
-"\x{1301}\x{120b}\x{12ed}",
-"\x{12a6}\x{1308}\x{1235}\x{1275}",
-"\x{1234}\x{1355}\x{1274}\x{121d}\x{1260}\x{122d}",
-"\x{12a6}\x{12ad}\x{1270}\x{12cd}\x{1260}\x{122d}",
-"\x{1296}\x{126c}\x{121d}\x{1260}\x{122d}",
-"\x{12f2}\x{1234}\x{121d}\x{1260}\x{122d}"
-);
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = (
-"\x{1295}/\x{1230}",
-"\x{12F5}/\x{1230}"
-);
-
-@Dsuf = ("\x{12ed}" x 31);
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/TigrinyaEritrean.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/TigrinyaEritrean.pm
deleted file mode 100644
index 7ab8d0fdd1e..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/TigrinyaEritrean.pm
+++ /dev/null
@@ -1,93 +0,0 @@
-##
-## Tigrinya-Eritrean tables
-##
-
-package Date::Language::TigrinyaEritrean;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.00";
-
-if ( $] >= 5.006 ) {
-@DoW = (
-"\x{1230}\x{1295}\x{1260}\x{1275}",
-"\x{1230}\x{1291}\x{12ed}",
-"\x{1230}\x{1209}\x{1235}",
-"\x{1228}\x{1261}\x{12d5}",
-"\x{1213}\x{1219}\x{1235}",
-"\x{12d3}\x{122d}\x{1262}",
-"\x{1240}\x{12f3}\x{121d}"
-);
-@MoY = (
-"\x{1303}\x{1295}\x{12e9}\x{12c8}\x{122a}",
-"\x{134c}\x{1265}\x{1229}\x{12c8}\x{122a}",
-"\x{121b}\x{122d}\x{127d}",
-"\x{12a4}\x{1355}\x{1228}\x{120d}",
-"\x{121c}\x{12ed}",
-"\x{1301}\x{1295}",
-"\x{1301}\x{120b}\x{12ed}",
-"\x{12a6}\x{1308}\x{1235}\x{1275}",
-"\x{1234}\x{1355}\x{1274}\x{121d}\x{1260}\x{122d}",
-"\x{12a6}\x{12ad}\x{1270}\x{12cd}\x{1260}\x{122d}",
-"\x{1296}\x{126c}\x{121d}\x{1260}\x{122d}",
-"\x{12f2}\x{1234}\x{121d}\x{1260}\x{122d}"
-);
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = (
-"\x{1295}/\x{1230}",
-"\x{12F5}/\x{1230}"
-);
-
-@Dsuf = ("\x{12ed}" x 31);
-}
-else {
-@DoW = (
-"ሰንበት",
-"ሰኑይ",
-"ሰሉስ",
-"ረቡዕ",
-"ሓሙስ",
-"ዓርቢ",
-"ቀዳáˆ"
-);
-@MoY = (
-"ጥሪ",
-"ለካቲት",
-"መጋቢት",
-"ሚያá‹á‹«",
-"áŒáŠ•á‰¦á‰µ",
-"ሰáŠ",
-"ሓáˆáˆˆ",
-"áŠáˆ“ሰ",
-"መስከረáˆ",
-"ጥቅáˆá‰²",
-"ሕዳር",
-"ታሕሳስ"
-);
-@DoWs = map { substr($_,0,9) } @DoW;
-@MoYs = map { substr($_,0,9) } @MoY;
-@AMPM = (
-"ን/ሰ",
-"ድ/ሰ"
-);
-
-@Dsuf = ("á‹­" x 31);
-}
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/TigrinyaEthiopian.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/TigrinyaEthiopian.pm
deleted file mode 100644
index 84fb7237c31..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/TigrinyaEthiopian.pm
+++ /dev/null
@@ -1,93 +0,0 @@
-##
-## Tigrinya-Ethiopian tables
-##
-
-package Date::Language::TigrinyaEthiopian;
-
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION);
-@ISA = qw(Date::Language);
-$VERSION = "1.00";
-
-if ( $] >= 5.006 ) {
-@DoW = (
-"\x{1230}\x{1295}\x{1260}\x{1275}",
-"\x{1230}\x{1291}\x{12ed}",
-"\x{1230}\x{1209}\x{1235}",
-"\x{1228}\x{1261}\x{12d5}",
-"\x{1213}\x{1219}\x{1235}",
-"\x{12d3}\x{122d}\x{1262}",
-"\x{1240}\x{12f3}\x{121d}"
-);
-@MoY = (
-"\x{1303}\x{1295}\x{12e9}\x{12c8}\x{122a}",
-"\x{134c}\x{1265}\x{1229}\x{12c8}\x{122a}",
-"\x{121b}\x{122d}\x{127d}",
-"\x{12a4}\x{1355}\x{1228}\x{120d}",
-"\x{121c}\x{12ed}",
-"\x{1301}\x{1295}",
-"\x{1301}\x{120b}\x{12ed}",
-"\x{12a6}\x{1308}\x{1235}\x{1275}",
-"\x{1234}\x{1355}\x{1274}\x{121d}\x{1260}\x{122d}",
-"\x{12a6}\x{12ad}\x{1270}\x{12cd}\x{1260}\x{122d}",
-"\x{1296}\x{126c}\x{121d}\x{1260}\x{122d}",
-"\x{12f2}\x{1234}\x{121d}\x{1260}\x{122d}"
-);
-@DoWs = map { substr($_,0,3) } @DoW;
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = (
-"\x{1295}/\x{1230}",
-"\x{12F5}/\x{1230}"
-);
-
-@Dsuf = ("\x{12ed}" x 31);
-}
-else {
-@DoW = (
-"ሰንበት",
-"ሰኑይ",
-"ሰሉስ",
-"ረቡዕ",
-"ሓሙስ",
-"ዓርቢ",
-"ቀዳáˆ"
-);
-@MoY = (
-"ጃንዩወሪ",
-"áŒá‰¥áˆ©á‹ˆáˆª",
-"ማርች",
-"ኤá•áˆ¨áˆ",
-"ሜይ",
-"áŒáŠ•",
-"áŒáˆ‹á‹­",
-"ኦገስት",
-"ሴá•á‰´áˆá‰ áˆ­",
-"ኦክተá‹á‰ áˆ­",
-"ኖቬáˆá‰ áˆ­",
-"ዲሴáˆá‰ áˆ­"
-);
-@DoWs = map { substr($_,0,9) } @DoW;
-@MoYs = map { substr($_,0,9) } @MoY;
-@AMPM = (
-"ን/ሰ",
-"ድ/ሰ"
-);
-
-@Dsuf = ("á‹­" x 31);
-}
-
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[$_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[$_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { $_[0]->[2] >= 12 ? $AMPM[1] : $AMPM[0] }
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Language/Turkish.pm b/Master/tlpkg/tlperl/site/lib/Date/Language/Turkish.pm
deleted file mode 100644
index 593e20925cf..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Language/Turkish.pm
+++ /dev/null
@@ -1,59 +0,0 @@
-#----------------------------------------------------#
-#
-# Turkish tables
-# Burak Gürsoy <burak@cpan.org>
-# Last modified: Sat Nov 15 20:28:32 2003
-#
-# use Date::Language;
-# my $turkish = Date::Language->new('Turkish');
-# print $turkish->time2str("%e %b %Y, %a %T\n", time);
-# print $turkish->str2time("25 Haz 1996 21:09:55 +0100");
-#----------------------------------------------------#
-
-package Date::Language::Turkish;
-use Date::Language ();
-use vars qw(@ISA @DoW @DoWs @MoY @MoYs @AMPM @Dsuf %MoY %DoW $VERSION %DsufMAP);
-@ISA = qw(Date::Language);
-$VERSION = "1.0";
-
-@DoW = qw(Pazar Pazartesi Salý Çarþamba Perþembe Cuma Cumartesi);
-@MoY = qw(Ocak Þubat Mart Nisan Mayýs Haziran Temmuz Aðustos Eylül Ekim Kasým Aralýk);
-@DoWs = map { substr($_,0,3) } @DoW;
-$DoWs[1] = 'Pzt'; # Since we'll get two 'Paz' s
-$DoWs[-1] = 'Cmt'; # Since we'll get two 'Cum' s
-@MoYs = map { substr($_,0,3) } @MoY;
-@AMPM = ('',''); # no am-pm thingy
-
-# not easy as in english... maybe we can just use a dot "." ? :)
-%DsufMAP = (
-(map {$_ => 'inci', $_+10 => 'inci', $_+20 => 'inci' } 1,2,5,8 ),
-(map {$_ => 'nci', $_+10 => 'nci', $_+20 => 'nci' } 7 ),
-(map {$_ => 'nci', $_+10 => 'nci', $_+20 => 'nci' } 2 ),
-(map {$_ => 'üncü', $_+10 => 'üncü', $_+20 => 'üncü' } 3,4 ),
-(map {$_ => 'uncu', $_+10 => 'uncu', $_+20 => 'uncu' } 9 ),
-(map {$_ => 'ncý', $_+10 => 'ncý', $_+20 => 'ncý' } 6 ),
-(map {$_ => 'uncu', } 10,30 ),
- 20 => 'nci',
- 31 => 'inci',
-);
-
-@Dsuf = map{ $DsufMAP{$_} } sort {$a <=> $b} keys %DsufMAP;
-@MoY{@MoY} = (0 .. scalar(@MoY));
-@MoY{@MoYs} = (0 .. scalar(@MoYs));
-@DoW{@DoW} = (0 .. scalar(@DoW));
-@DoW{@DoWs} = (0 .. scalar(@DoWs));
-
-# Formatting routines
-
-sub format_a { $DoWs[$_[0]->[6]] }
-sub format_A { $DoW[ $_[0]->[6]] }
-sub format_b { $MoYs[$_[0]->[4]] }
-sub format_B { $MoY[ $_[0]->[4]] }
-sub format_h { $MoYs[$_[0]->[4]] }
-sub format_p { '' } # disable
-sub format_P { '' } # disable
-sub format_o { sprintf("%2d%s",$_[0]->[3],$Dsuf[$_[0]->[3]-1]) }
-
-1;
-
-__END__
diff --git a/Master/tlpkg/tlperl/site/lib/Date/Parse.pm b/Master/tlpkg/tlperl/site/lib/Date/Parse.pm
deleted file mode 100644
index 12b04c14ad0..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Date/Parse.pm
+++ /dev/null
@@ -1,380 +0,0 @@
-# Copyright (c) 1995-2009 Graham Barr. This program is free
-# software; you can redistribute it and/or modify it under the same terms
-# as Perl itself.
-
-package Date::Parse;
-
-require 5.000;
-use strict;
-use vars qw($VERSION @ISA @EXPORT);
-use Time::Local;
-use Carp;
-use Time::Zone;
-use Exporter;
-
-@ISA = qw(Exporter);
-@EXPORT = qw(&strtotime &str2time &strptime);
-
-$VERSION = "2.30";
-
-my %month = (
- january => 0,
- february => 1,
- march => 2,
- april => 3,
- may => 4,
- june => 5,
- july => 6,
- august => 7,
- september => 8,
- sept => 8,
- october => 9,
- november => 10,
- december => 11,
- );
-
-my %day = (
- sunday => 0,
- monday => 1,
- tuesday => 2,
- tues => 2,
- wednesday => 3,
- wednes => 3,
- thursday => 4,
- thur => 4,
- thurs => 4,
- friday => 5,
- saturday => 6,
- );
-
-my @suf = (qw(th st nd rd th th th th th th)) x 3;
-@suf[11,12,13] = qw(th th th);
-
-#Abbreviations
-
-map { $month{substr($_,0,3)} = $month{$_} } keys %month;
-map { $day{substr($_,0,3)} = $day{$_} } keys %day;
-
-my $strptime = <<'ESQ';
- my %month = map { lc $_ } %$mon_ref;
- my $daypat = join("|", map { lc $_ } reverse sort keys %$day_ref);
- my $monpat = join("|", reverse sort keys %month);
- my $sufpat = join("|", reverse sort map { lc $_ } @$suf_ref);
-
- my %ampm = (
- 'a' => 0, # AM
- 'p' => 12, # PM
- );
-
- my($AM, $PM) = (0,12);
-
-sub {
-
- my $dtstr = lc shift;
- my $merid = 24;
-
- my($year,$month,$day,$hh,$mm,$ss,$zone,$dst,$frac);
-
- $zone = tz_offset(shift) if @_;
-
- 1 while $dtstr =~ s#\([^\(\)]*\)# #o;
-
- $dtstr =~ s#(\A|\n|\Z)# #sog;
-
- # ignore day names
- $dtstr =~ s#([\d\w\s])[\.\,]\s#$1 #sog;
- $dtstr =~ s/,/ /g;
- $dtstr =~ s#($daypat)\s*(den\s)?\b# #o;
- # Time: 12:00 or 12:00:00 with optional am/pm
-
- return unless $dtstr =~ /\S/;
-
- if ($dtstr =~ s/\s(\d{4})([-:]?)(\d\d?)\2(\d\d?)(?:[-Tt ](\d\d?)(?:([-:]?)(\d\d?)(?:\6(\d\d?)(?:[.,](\d+))?)?)?)?(?=\D)/ /) {
- ($year,$month,$day,$hh,$mm,$ss,$frac) = ($1,$3-1,$4,$5,$7,$8,$9);
- }
-
- unless (defined $hh) {
- if ($dtstr =~ s#[:\s](\d\d?):(\d\d?)(:(\d\d?)(?:\.\d+)?)?(z)?\s*(?:([ap])\.?m?\.?)?\s# #o) {
- ($hh,$mm,$ss) = ($1,$2,$4);
- $zone = 0 if $5;
- $merid = $ampm{$6} if $6;
- }
-
- # Time: 12 am
-
- elsif ($dtstr =~ s#\s(\d\d?)\s*([ap])\.?m?\.?\s# #o) {
- ($hh,$mm,$ss) = ($1,0,0);
- $merid = $ampm{$2};
- }
- }
-
- if (defined $hh and $hh <= 12 and $dtstr =~ s# ([ap])\.?m?\.?\s# #o) {
- $merid = $ampm{$1};
- }
-
-
- unless (defined $year) {
- # Date: 12-June-96 (using - . or /)
-
- if ($dtstr =~ s#\s(\d\d?)([\-\./])($monpat)(\2(\d\d+))?\s# #o) {
- ($month,$day) = ($month{$3},$1);
- $year = $5 if $5;
- }
-
- # Date: 12-12-96 (using '-', '.' or '/' )
-
- elsif ($dtstr =~ s#\s(\d+)([\-\./])(\d\d?)(\2(\d+))?\s# #o) {
- ($month,$day) = ($1 - 1,$3);
-
- if ($5) {
- $year = $5;
- # Possible match for 1995-01-24 (short mainframe date format);
- ($year,$month,$day) = ($1, $3 - 1, $5) if $month > 12;
- return if length($year) > 2 and $year < 1901;
- }
- }
- elsif ($dtstr =~ s#\s(\d+)\s*($sufpat)?\s*($monpat)# #o) {
- ($month,$day) = ($month{$3},$1);
- }
- elsif ($dtstr =~ s#($monpat)\s*(\d+)\s*($sufpat)?\s# #o) {
- ($month,$day) = ($month{$1},$2);
- }
- elsif ($dtstr =~ s#($monpat)([\/-])(\d+)[\/-]# #o) {
- ($month,$day) = ($month{$1},$3);
- }
-
- # Date: 961212
-
- elsif ($dtstr =~ s#\s(\d\d)(\d\d)(\d\d)\s# #o) {
- ($year,$month,$day) = ($1,$2-1,$3);
- }
-
- $year = $1 if !defined($year) and $dtstr =~ s#\s(\d{2}(\d{2})?)[\s\.,]# #o;
-
- }
-
- # Zone
-
- $dst = 1 if $dtstr =~ s#\bdst\b##o;
-
- if ($dtstr =~ s#\s"?([a-z]{3,4})(dst|\d+[a-z]*|_[a-z]+)?"?\s# #o) {
- $dst = 1 if $2 and $2 eq 'dst';
- $zone = tz_offset($1);
- return unless defined $zone;
- }
- elsif ($dtstr =~ s#\s([a-z]{3,4})?([\-\+]?)-?(\d\d?):?(\d\d)?(00)?\s# #o) {
- my $m = defined($4) ? "$2$4" : 0;
- my $h = "$2$3";
- $zone = defined($1) ? tz_offset($1) : 0;
- return unless defined $zone;
- $zone += 60 * ($m + (60 * $h));
- }
-
- if ($dtstr =~ /\S/) {
- # now for some dumb dates
- if ($dtstr =~ s/^\s*(ut?|z)\s*$//) {
- $zone = 0;
- }
- elsif ($dtstr =~ s#\s([a-z]{3,4})?([\-\+]?)-?(\d\d?)(\d\d)?(00)?\s# #o) {
- my $m = defined($4) ? "$2$4" : 0;
- my $h = "$2$3";
- $zone = defined($1) ? tz_offset($1) : 0;
- return unless defined $zone;
- $zone += 60 * ($m + (60 * $h));
- }
-
- return if $dtstr =~ /\S/o;
- }
-
- if (defined $hh) {
- if ($hh == 12) {
- $hh = 0 if $merid == $AM;
- }
- elsif ($merid == $PM) {
- $hh += 12;
- }
- }
-
- $year -= 1900 if defined $year && $year > 1900;
-
- $zone += 3600 if defined $zone && $dst;
- $ss += "0.$frac" if $frac;
-
- return ($ss,$mm,$hh,$day,$month,$year,$zone);
-}
-ESQ
-
-use vars qw($day_ref $mon_ref $suf_ref $obj);
-
-sub gen_parser
-{
- local($day_ref,$mon_ref,$suf_ref,$obj) = @_;
-
- if($obj)
- {
- my $obj_strptime = $strptime;
- substr($obj_strptime,index($strptime,"sub")+6,0) = <<'ESQ';
- shift; # package
-ESQ
- my $sub = eval "$obj_strptime" or die $@;
- return $sub;
- }
-
- eval "$strptime" or die $@;
-
-}
-
-*strptime = gen_parser(\%day,\%month,\@suf);
-
-sub str2time
-{
- my @t = strptime(@_);
-
- return undef
- unless @t;
-
- my($ss,$mm,$hh,$day,$month,$year,$zone) = @t;
- my @lt = localtime(time);
-
- $hh ||= 0;
- $mm ||= 0;
- $ss ||= 0;
-
- my $frac = $ss - int($ss);
- $ss = int $ss;
-
- $month = $lt[4]
- unless(defined $month);
-
- $day = $lt[3]
- unless(defined $day);
-
- $year = ($month > $lt[4]) ? ($lt[5] - 1) : $lt[5]
- unless(defined $year);
-
- return undef
- unless($month <= 11 && $day >= 1 && $day <= 31
- && $hh <= 23 && $mm <= 59 && $ss <= 59);
-
- my $result;
-
- if (defined $zone) {
- $result = eval {
- local $SIG{__DIE__} = sub {}; # Ick!
- timegm($ss,$mm,$hh,$day,$month,$year);
- };
- return undef
- if !defined $result
- or $result == -1
- && join("",$ss,$mm,$hh,$day,$month,$year)
- ne "595923311169";
- $result -= $zone;
- }
- else {
- $result = eval {
- local $SIG{__DIE__} = sub {}; # Ick!
- timelocal($ss,$mm,$hh,$day,$month,$year);
- };
- return undef
- if !defined $result
- or $result == -1
- && join("",$ss,$mm,$hh,$day,$month,$year)
- ne join("",(localtime(-1))[0..5]);
- }
-
- return $result + $frac;
-}
-
-1;
-
-__END__
-
-
-=head1 NAME
-
-Date::Parse - Parse date strings into time values
-
-=head1 SYNOPSIS
-
- use Date::Parse;
-
- $time = str2time($date);
-
- ($ss,$mm,$hh,$day,$month,$year,$zone) = strptime($date);
-
-=head1 DESCRIPTION
-
-C<Date::Parse> provides two routines for parsing date strings into time values.
-
-=over 4
-
-=item str2time(DATE [, ZONE])
-
-C<str2time> parses C<DATE> and returns a unix time value, or undef upon failure.
-C<ZONE>, if given, specifies the timezone to assume when parsing if the
-date string does not specify a timezone.
-
-=item strptime(DATE [, ZONE])
-
-C<strptime> takes the same arguments as str2time but returns an array of
-values C<($ss,$mm,$hh,$day,$month,$year,$zone)>. Elements are only defined
-if they could be extracted from the date string. The C<$zone> element is
-the timezone offset in seconds from GMT. An empty array is returned upon
-failure.
-
-=head1 MULTI-LANGUAGE SUPPORT
-
-Date::Parse is capable of parsing dates in several languages, these include
-English, French, German and Italian.
-
- $lang = Date::Language->new('German');
- $lang->str2time("25 Jun 1996 21:09:55 +0100");
-
-=head1 EXAMPLE DATES
-
-Below is a sample list of dates that are known to be parsable with Date::Parse
-
- 1995:01:24T09:08:17.1823213 ISO-8601
- 1995-01-24T09:08:17.1823213
- Wed, 16 Jun 94 07:29:35 CST Comma and day name are optional
- Thu, 13 Oct 94 10:13:13 -0700
- Wed, 9 Nov 1994 09:50:32 -0500 (EST) Text in ()'s will be ignored.
- 21 dec 17:05 Will be parsed in the current time zone
- 21-dec 17:05
- 21/dec 17:05
- 21/dec/93 17:05
- 1999 10:02:18 "GMT"
- 16 Nov 94 22:28:20 PST
-
-=head1 LIMITATION
-
-Date::Parse uses L<Time::Local> internally, so is limited to only parsing dates
-which result in valid values for Time::Local::timelocal. This generally means dates
-between 1901-12-17 00:00:00 GMT and 2038-01-16 23:59:59 GMT
-
-=head1 BUGS
-
-When both the month and the date are specified in the date as numbers
-they are always parsed assuming that the month number comes before the
-date. This is the usual format used in American dates.
-
-The reason why it is like this and not dynamic is that it must be
-deterministic. Several people have suggested using the current locale,
-but this will not work as the date being parsed may not be in the format
-of the current locale.
-
-My plans to address this, which will be in a future release, is to allow
-the programmer to state what order they want these values parsed in.
-
-=head1 AUTHOR
-
-Graham Barr <gbarr@pobox.com>
-
-=head1 COPYRIGHT
-
-Copyright (c) 1995-2009 Graham Barr. This program is free
-software; you can redistribute it and/or modify it under the same terms
-as Perl itself.
-
-=cut
-
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Config.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Config.pm
index 0742c932fce..5905634d82b 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Config.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Config.pm
@@ -3,7 +3,7 @@ package HTTP::Config;
use strict;
use warnings;
-our $VERSION = '6.18';
+our $VERSION = '6.22';
use URI;
@@ -245,7 +245,7 @@ HTTP::Config - Configuration for request and response objects
=head1 VERSION
-version 6.18
+version 6.22
=head1 SYNOPSIS
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Cookies.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Cookies.pm
index dcbeba64d27..3aee7b4640b 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Cookies.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Cookies.pm
@@ -4,18 +4,14 @@ use strict;
use HTTP::Date qw(str2time parse_date time2str);
use HTTP::Headers::Util qw(_split_header_words join_header_words);
-use vars qw($EPOCH_OFFSET);
-our $VERSION = '6.04';
+our $EPOCH_OFFSET;
+our $VERSION = '6.08';
# Legacy: because "use "HTTP::Cookies" used be the ONLY way
# to load the class HTTP::Cookies::Netscape.
require HTTP::Cookies::Netscape;
$EPOCH_OFFSET = 0; # difference from Unix epoch
-if ($^O eq "MacOS") {
- require Time::Local;
- $EPOCH_OFFSET = Time::Local::timelocal(0,0,0,1,0,70);
-}
# A HTTP::Cookies object is a hash. The main attribute is the
# COOKIES 3 level hash: $self->{COOKIES}{$domain}{$path}{$key}.
@@ -231,7 +227,7 @@ sub extract_cookies
my $param;
my $expires;
my $first_param = 1;
- for $param (split(/;\s*/, $set)) {
+ for $param (@{_split_text($set)}) {
next unless length($param);
my($k,$v) = split(/\s*=\s*/, $param, 2);
if (defined $v) {
@@ -430,10 +426,17 @@ sub set_cookie
sub save
{
my $self = shift;
- my $file = shift || $self->{'file'} || return;
+ my %args = (
+ file => $self->{'file'},
+ ignore_discard => $self->{'ignore_discard'},
+ @_ == 1 ? ( file => $_[0] ) : @_
+ );
+ Carp::croak('Unexpected argument to save method') if keys %args > 2;
+ my $file = $args{'file'} || return;
open(my $fh, '>', $file) or die "Can't open $file: $!";
print {$fh} "#LWP-Cookies-1.0\n";
- print {$fh} $self->as_string(!$self->{ignore_discard});
+ print {$fh} $self->as_string(!$args{'ignore_discard'});
+ close $fh or die "Can't close $file: $!";
1;
}
@@ -620,6 +623,50 @@ sub _normalize_path # so that plain string compare can be used
$_[0] =~ s/([\0-\x20\x7f-\xff])/sprintf("%%%02X",ord($1))/eg;
}
+# deals with splitting values by ; and the fact that they could
+# be in quotes which can also have escaping.
+sub _split_text {
+ my $val = shift;
+ my @vals = grep { $_ ne q{} } split(/([;\\"])/, $val);
+ my @chunks;
+ # divide it up into chunks to be processed.
+ my $in_string = 0;
+ my @current_string;
+ for(my $i = 0; $i < @vals; $i++) {
+ my $chunk = $vals[$i];
+ if($in_string) {
+ if($chunk eq q{\\}) {
+ # don't care about next char probably.
+ # having said that, probably need to be appending to the chunks
+ # just dropping this.
+ $i++;
+ if($i < @vals) {
+ push @current_string, $vals[$i];
+ }
+ } elsif($chunk eq q{"}) {
+ $in_string = 0;
+ }
+ else {
+ push @current_string, $chunk;
+ }
+ } else {
+ if($chunk eq q{"}) {
+ $in_string = 1;
+ }
+ elsif($chunk eq q{;}) {
+ push @chunks, join(q{}, @current_string);
+ @current_string = ();
+ }
+ else {
+ push @current_string, $chunk;
+ }
+ }
+ }
+ push @chunks, join(q{}, @current_string) if @current_string;
+ s/^\s+// for @chunks;
+ return \@chunks;
+}
+
1;
=pod
@@ -632,7 +679,7 @@ HTTP::Cookies - HTTP cookie jars
=head1 VERSION
-version 6.04
+version 6.08
=head1 SYNOPSIS
@@ -661,8 +708,8 @@ knows about.
Cookies are a general mechanism which server side connections can use
to both store and retrieve information on the client side of the
connection. For more information about cookies refer to
-<URL:http://curl.haxx.se/rfc/cookie_spec.html> and
-<URL:http://www.cookiecentral.com/>. This module also implements the
+L<Cookie Spec|http://curl.haxx.se/rfc/cookie_spec.html> and
+L<Cookie Central|http://www.cookiecentral.com>. This module also implements the
new style cookies described in L<RFC 2965|https://tools.ietf.org/html/rfc2965>.
The two variants of cookies are supposed to be able to coexist happily.
@@ -741,18 +788,24 @@ The set_cookie() method updates the state of the $cookie_jar. The
$key, $val, $domain, $port and $path arguments are strings. The
$path_spec, $secure, $discard arguments are boolean values. The $maxage
value is a number indicating number of seconds that this cookie will
-live. A value of $maxage <= 0 will delete this cookie. %rest defines
-various other attributes like "Comment" and "CommentURL".
+live. A value of $maxage <= 0 will delete this cookie. The $version argument
+sets the version of the cookie; the default value is 0 ( original Netscape
+spec ). Setting $version to another value indicates the RFC to which the
+cookie conforms (e.g. version 1 for RFC 2109). %rest defines various other
+attributes like "Comment" and "CommentURL".
=item $cookie_jar->save
=item $cookie_jar->save( $file )
+=item $cookie_jar->save( file => $file, ignore_discard => $ignore_discard )
+
This method file saves the state of the $cookie_jar to a file.
The state can then be restored later using the load() method. If a
filename is not specified we will use the name specified during
-construction. If the attribute I<ignore_discard> is set, then we
-will even save cookies that are marked to be discarded.
+construction. If the $ignore_discard value is true (or not specified,
+but attribute I<ignore_discard> was set at cookie jar construction),
+then we will even save cookies that are marked to be discarded.
The default is to save a sequence of "Set-Cookie3" lines.
"Set-Cookie3" is a proprietary LWP format, not known to be compatible
@@ -832,7 +885,7 @@ Gisle Aas <gisle@activestate.com>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2002-2017 by Gisle Aas.
+This software is copyright (c) 2002-2019 by Gisle Aas.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Cookies/Microsoft.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Cookies/Microsoft.pm
index 737da2829fa..702255a3359 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Cookies/Microsoft.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Cookies/Microsoft.pm
@@ -2,12 +2,10 @@ package HTTP::Cookies::Microsoft;
use strict;
-use vars qw(@ISA);
-
-our $VERSION = '6.04';
+our $VERSION = '6.08';
require HTTP::Cookies;
-@ISA=qw(HTTP::Cookies);
+our @ISA=qw(HTTP::Cookies);
sub load_cookies_from_file
{
@@ -226,7 +224,7 @@ sub load
# set the delayload cookie for this domain with
# the cookie_file as cookie for later-loading info
- $self->set_cookie(undef, 'cookie', $cookie_file, '//+delayload', $domain, undef, 0, 0, $now+86400, 0);
+ $self->set_cookie(undef, 'cookie', $cookie_file, '//+delayload', $domain, undef, 0, 0, $now+86_400, 0);
}
}
}
@@ -246,7 +244,7 @@ HTTP::Cookies::Microsoft - Access to Microsoft cookies files
=head1 VERSION
-version 6.04
+version 6.08
=head1 SYNOPSIS
@@ -313,7 +311,7 @@ Gisle Aas <gisle@activestate.com>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2002-2017 by Gisle Aas.
+This software is copyright (c) 2002-2019 by Gisle Aas.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Cookies/Netscape.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Cookies/Netscape.pm
index 8fbac888499..28a59d4feff 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Cookies/Netscape.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Cookies/Netscape.pm
@@ -1,12 +1,11 @@
package HTTP::Cookies::Netscape;
use strict;
-use vars qw(@ISA);
-our $VERSION = '6.04';
+our $VERSION = '6.08';
require HTTP::Cookies;
-@ISA=qw(HTTP::Cookies);
+our @ISA=qw(HTTP::Cookies);
sub load
{
@@ -37,8 +36,14 @@ sub load
sub save
{
- my($self, $file) = @_;
- $file ||= $self->{'file'} || return;
+ my $self = shift;
+ my %args = (
+ file => $self->{'file'},
+ ignore_discard => $self->{'ignore_discard'},
+ @_ == 1 ? ( file => $_[0] ) : @_
+ );
+ Carp::croak('Unexpected argument to save method') if keys %args > 2;
+ my $file = $args{'file'} || return;
open(my $fh, '>', $file) || return;
@@ -54,7 +59,7 @@ EOT
my $now = time - $HTTP::Cookies::EPOCH_OFFSET;
$self->scan(sub {
my ($version, $key, $val, $path, $domain, $port, $path_spec, $secure, $expires, $discard, $rest) = @_;
- return if $discard && !$self->{ignore_discard};
+ return if $discard && !$args{'ignore_discard'};
$expires = $expires ? $expires - $HTTP::Cookies::EPOCH_OFFSET : 0;
return if $now > $expires;
$secure = $secure ? "TRUE" : "FALSE";
@@ -76,7 +81,7 @@ HTTP::Cookies::Netscape - Access to Netscape cookies files
=head1 VERSION
-version 6.04
+version 6.08
=head1 SYNOPSIS
@@ -114,7 +119,7 @@ Gisle Aas <gisle@activestate.com>
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2002-2017 by Gisle Aas.
+This software is copyright (c) 2002-2019 by Gisle Aas.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Daemon.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Daemon.pm
index 27a7bf4e173..3b3d6903d0a 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Daemon.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Daemon.pm
@@ -1,29 +1,41 @@
-package HTTP::Daemon;
+package HTTP::Daemon; # git description: v6.05-4-g31c6eaf
+
+# ABSTRACT: A simple http server class
use strict;
-use vars qw($VERSION @ISA $PROTO $DEBUG);
+use warnings;
-$VERSION = "6.01";
+our $VERSION = '6.06';
-use IO::Socket qw(AF_INET INADDR_ANY INADDR_LOOPBACK inet_ntoa);
-@ISA=qw(IO::Socket::INET);
+use Socket qw(
+ AF_INET AF_INET6 INADDR_ANY IN6ADDR_ANY INADDR_LOOPBACK IN6ADDR_LOOPBACK
+ inet_ntop sockaddr_family
+);
+use IO::Socket::IP;
+our @ISA = qw(IO::Socket::IP);
-$PROTO = "HTTP/1.1";
+our $PROTO = "HTTP/1.1";
+our $DEBUG;
-sub new
-{
- my($class, %args) = @_;
+sub new {
+ my ($class, %args) = @_;
$args{Listen} ||= 5;
$args{Proto} ||= 'tcp';
+
+ # Handle undefined or empty local address the same way as
+ # IO::Socket::INET -- use unspecified address
+ for my $key (qw(LocalAddr LocalHost)) {
+ if (exists $args{$key} && (!defined $args{$key} || $args{$key} eq '')) {
+ delete $args{$key};
+ }
+ }
return $class->SUPER::new(%args);
}
-
-sub accept
-{
+sub accept {
my $self = shift;
- my $pkg = shift || "HTTP::Daemon::ClientConn";
+ my $pkg = shift || "HTTP::Daemon::ClientConn";
my ($sock, $peer) = $self->SUPER::accept($pkg);
if ($sock) {
${*$sock}{'httpd_daemon'} = $self;
@@ -34,21 +46,49 @@ sub accept
}
}
-
-sub url
-{
+sub url {
my $self = shift;
- my $url = $self->_default_scheme . "://";
+ my $url = $self->_default_scheme . "://";
my $addr = $self->sockaddr;
- if (!$addr || $addr eq INADDR_ANY) {
- require Sys::Hostname;
- $url .= lc Sys::Hostname::hostname();
+ if (!$addr || $addr eq INADDR_ANY || $addr eq IN6ADDR_ANY) {
+ require Sys::Hostname;
+ $url .= lc Sys::Hostname::hostname();
}
elsif ($addr eq INADDR_LOOPBACK) {
- $url .= inet_ntoa($addr);
+ $url .= inet_ntop(AF_INET, $addr);
+ }
+ elsif ($addr eq IN6ADDR_LOOPBACK) {
+ $url .= '[' . inet_ntop(AF_INET6, $addr) . ']';
}
else {
- $url .= gethostbyaddr($addr, AF_INET) || inet_ntoa($addr);
+ my $host = $self->sockhostname;
+
+ # sockhostname() seems to return a stringified IP address if not
+ # resolvable. Then quote it for a port separator and an IPv6 zone
+ # separator. But be paranoid for a case when it already contains
+ # a bracket.
+ if (defined $host and $host =~ /:/) {
+ if ($host =~ /[\[\]]/) {
+ $host = undef;
+ }
+ else {
+ $host =~ s/%/%25/g;
+ $host = '[' . $host . ']';
+ }
+ }
+ if (!defined $host) {
+ my $family = sockaddr_family($self->sockname);
+ if ($family && $family == AF_INET6) {
+ $host = '[' . inet_ntop(AF_INET6, $addr) . ']';
+ }
+ elsif ($family && $family == AF_INET) {
+ $host = inet_ntop(AF_INET, $addr);
+ }
+ else {
+ die "Unknown family";
+ }
+ }
+ $url .= $host;
}
my $port = $self->sockport;
$url .= ":$port" if $port != $self->_default_port;
@@ -56,29 +96,27 @@ sub url
$url;
}
-
sub _default_port {
80;
}
-
sub _default_scheme {
"http";
}
-
-sub product_tokens
-{
+sub product_tokens {
"libwww-perl-daemon/$HTTP::Daemon::VERSION";
}
+package # hide from PAUSE
+ HTTP::Daemon::ClientConn;
+use strict;
+use warnings;
-package HTTP::Daemon::ClientConn;
-
-use vars qw(@ISA $DEBUG);
-use IO::Socket ();
-@ISA=qw(IO::Socket::INET);
+use IO::Socket::IP ();
+our @ISA = qw(IO::Socket::IP);
+our $DEBUG;
*DEBUG = \$HTTP::Daemon::DEBUG;
use HTTP::Request ();
@@ -88,64 +126,65 @@ use HTTP::Date qw(time2str);
use LWP::MediaTypes qw(guess_media_type);
use Carp ();
-my $CRLF = "\015\012"; # "\r\n" is not portable
+# "\r\n" is not portable
+my $CRLF = "\015\012";
my $HTTP_1_0 = _http_version("HTTP/1.0");
my $HTTP_1_1 = _http_version("HTTP/1.1");
-sub get_request
-{
- my($self, $only_headers) = @_;
+sub get_request {
+ my ($self, $only_headers) = @_;
if (${*$self}{'httpd_nomore'}) {
$self->reason("No more requests from this connection");
- return;
+ return;
}
$self->reason("");
my $buf = ${*$self}{'httpd_rbuf'};
$buf = "" unless defined $buf;
- my $timeout = $ {*$self}{'io_socket_timeout'};
- my $fdset = "";
+ my $timeout = ${*$self}{'io_socket_timeout'};
+ my $fdset = "";
vec($fdset, $self->fileno, 1) = 1;
- local($_);
+ local ($_);
- READ_HEADER:
+READ_HEADER:
while (1) {
- # loop until we have the whole header in $buf
- $buf =~ s/^(?:\015?\012)+//; # ignore leading blank lines
- if ($buf =~ /\012/) { # potential, has at least one line
- if ($buf =~ /^\w+[^\012]+HTTP\/\d+\.\d+\015?\012/) {
- if ($buf =~ /\015?\012\015?\012/) {
- last READ_HEADER; # we have it
- }
- elsif (length($buf) > 16*1024) {
- $self->send_error(413); # REQUEST_ENTITY_TOO_LARGE
- $self->reason("Very long header");
- return;
- }
- }
- else {
- last READ_HEADER; # HTTP/0.9 client
- }
- }
- elsif (length($buf) > 16*1024) {
- $self->send_error(414); # REQUEST_URI_TOO_LARGE
- $self->reason("Very long first line");
- return;
- }
- print STDERR "Need more data for complete header\n" if $DEBUG;
- return unless $self->_need_more($buf, $timeout, $fdset);
+
+ # loop until we have the whole header in $buf
+ $buf =~ s/^(?:\015?\012)+//; # ignore leading blank lines
+ if ($buf =~ /\012/) { # potential, has at least one line
+ if ($buf =~ /^\w+[^\012]+HTTP\/\d+\.\d+\015?\012/) {
+ if ($buf =~ /\015?\012\015?\012/) {
+ last READ_HEADER; # we have it
+ }
+ elsif (length($buf) > 16 * 1024) {
+ $self->send_error(413); # REQUEST_ENTITY_TOO_LARGE
+ $self->reason("Very long header");
+ return;
+ }
+ }
+ else {
+ last READ_HEADER; # HTTP/0.9 client
+ }
+ }
+ elsif (length($buf) > 16 * 1024) {
+ $self->send_error(414); # REQUEST_URI_TOO_LARGE
+ $self->reason("Very long first line");
+ return;
+ }
+ print STDERR "Need more data for complete header\n" if $DEBUG;
+ return unless $self->_need_more($buf, $timeout, $fdset);
}
if ($buf !~ s/^(\S+)[ \t]+(\S+)(?:[ \t]+(HTTP\/\d+\.\d+))?[^\012]*\012//) {
- ${*$self}{'httpd_client_proto'} = _http_version("HTTP/1.0");
- $self->send_error(400); # BAD_REQUEST
- $self->reason("Bad request line: $buf");
- return;
+ ${*$self}{'httpd_client_proto'} = _http_version("HTTP/1.0");
+ $self->send_error(400); # BAD_REQUEST
+ $self->reason("Bad request line: $buf");
+ return;
}
my $method = $1;
- my $uri = $2;
- my $proto = $3 || "HTTP/0.9";
+ my $uri = $2;
+ my $proto = $3 || "HTTP/0.9";
$uri = "http://$uri" if $method eq "CONNECT";
$uri = $HTTP::URI_CLASS->new($uri, $self->daemon->url);
my $r = HTTP::Request->new($method, $uri);
@@ -154,37 +193,38 @@ sub get_request
${*$self}{'httpd_head'} = ($method eq "HEAD");
if ($proto >= $HTTP_1_0) {
- # we expect to find some headers
- my($key, $val);
- HEADER:
- while ($buf =~ s/^([^\012]*)\012//) {
- $_ = $1;
- s/\015$//;
- if (/^([^:\s]+)\s*:\s*(.*)/) {
- $r->push_header($key, $val) if $key;
- ($key, $val) = ($1, $2);
- }
- elsif (/^\s+(.*)/) {
- $val .= " $1";
- }
- else {
- last HEADER;
- }
- }
- $r->push_header($key, $val) if $key;
+
+ # we expect to find some headers
+ my ($key, $val);
+ HEADER:
+ while ($buf =~ s/^([^\012]*)\012//) {
+ $_ = $1;
+ s/\015$//;
+ if (/^([^:\s]+)\s*:\s*(.*)/) {
+ $r->push_header($key, $val) if $key;
+ ($key, $val) = ($1, $2);
+ }
+ elsif (/^\s+(.*)/) {
+ $val .= " $1";
+ }
+ else {
+ last HEADER;
+ }
+ }
+ $r->push_header($key, $val) if $key;
}
my $conn = $r->header('Connection');
if ($proto >= $HTTP_1_1) {
- ${*$self}{'httpd_nomore'}++ if $conn && lc($conn) =~ /\bclose\b/;
+ ${*$self}{'httpd_nomore'}++ if $conn && lc($conn) =~ /\bclose\b/;
}
else {
- ${*$self}{'httpd_nomore'}++ unless $conn &&
- lc($conn) =~ /\bkeep-alive\b/;
+ ${*$self}{'httpd_nomore'}++
+ unless $conn && lc($conn) =~ /\bkeep-alive\b/;
}
if ($only_headers) {
- ${*$self}{'httpd_rbuf'} = $buf;
+ ${*$self}{'httpd_rbuf'} = $buf;
return $r;
}
@@ -194,8 +234,8 @@ sub get_request
my $len = $r->header('Content-Length');
# Act on the Expect header, if it's there
- for my $e ( $r->header('Expect') ) {
- if( lc($e) eq '100-continue' ) {
+ for my $e ($r->header('Expect')) {
+ if (lc($e) eq '100-continue') {
$self->send_status_line(100);
$self->send_crlf;
}
@@ -207,111 +247,116 @@ sub get_request
}
if ($te && lc($te) eq 'chunked') {
- # Handle chunked transfer encoding
- my $body = "";
- CHUNK:
- while (1) {
- print STDERR "Chunked\n" if $DEBUG;
- if ($buf =~ s/^([^\012]*)\012//) {
- my $chunk_head = $1;
- unless ($chunk_head =~ /^([0-9A-Fa-f]+)/) {
- $self->send_error(400);
- $self->reason("Bad chunk header $chunk_head");
- return;
- }
- my $size = hex($1);
- last CHUNK if $size == 0;
-
- my $missing = $size - length($buf) + 2; # 2=CRLF at chunk end
- # must read until we have a complete chunk
- while ($missing > 0) {
- print STDERR "Need $missing more bytes\n" if $DEBUG;
- my $n = $self->_need_more($buf, $timeout, $fdset);
- return unless $n;
- $missing -= $n;
- }
- $body .= substr($buf, 0, $size);
- substr($buf, 0, $size+2) = '';
-
- }
- else {
- # need more data in order to have a complete chunk header
- return unless $self->_need_more($buf, $timeout, $fdset);
- }
- }
- $r->content($body);
-
- # pretend it was a normal entity body
- $r->remove_header('Transfer-Encoding');
- $r->header('Content-Length', length($body));
-
- my($key, $val);
- FOOTER:
- while (1) {
- if ($buf !~ /\012/) {
- # need at least one line to look at
- return unless $self->_need_more($buf, $timeout, $fdset);
- }
- else {
- $buf =~ s/^([^\012]*)\012//;
- $_ = $1;
- s/\015$//;
- if (/^([\w\-]+)\s*:\s*(.*)/) {
- $r->push_header($key, $val) if $key;
- ($key, $val) = ($1, $2);
- }
- elsif (/^\s+(.*)/) {
- $val .= " $1";
- }
- elsif (!length) {
- last FOOTER;
- }
- else {
- $self->reason("Bad footer syntax");
- return;
- }
- }
- }
- $r->push_header($key, $val) if $key;
+
+ # Handle chunked transfer encoding
+ my $body = "";
+ CHUNK:
+ while (1) {
+ print STDERR "Chunked\n" if $DEBUG;
+ if ($buf =~ s/^([^\012]*)\012//) {
+ my $chunk_head = $1;
+ unless ($chunk_head =~ /^([0-9A-Fa-f]+)/) {
+ $self->send_error(400);
+ $self->reason("Bad chunk header $chunk_head");
+ return;
+ }
+ my $size = hex($1);
+ last CHUNK if $size == 0;
+
+ my $missing = $size - length($buf) + 2; # 2=CRLF at chunk end
+ # must read until we have a complete chunk
+ while ($missing > 0) {
+ print STDERR "Need $missing more bytes\n" if $DEBUG;
+ my $n = $self->_need_more($buf, $timeout, $fdset);
+ return unless $n;
+ $missing -= $n;
+ }
+ $body .= substr($buf, 0, $size);
+ substr($buf, 0, $size + 2) = '';
+
+ }
+ else {
+ # need more data in order to have a complete chunk header
+ return unless $self->_need_more($buf, $timeout, $fdset);
+ }
+ }
+ $r->content($body);
+
+ # pretend it was a normal entity body
+ $r->remove_header('Transfer-Encoding');
+ $r->header('Content-Length', length($body));
+
+ my ($key, $val);
+ FOOTER:
+ while (1) {
+ if ($buf !~ /\012/) {
+
+ # need at least one line to look at
+ return unless $self->_need_more($buf, $timeout, $fdset);
+ }
+ else {
+ $buf =~ s/^([^\012]*)\012//;
+ $_ = $1;
+ s/\015$//;
+ if (/^([\w\-]+)\s*:\s*(.*)/) {
+ $r->push_header($key, $val) if $key;
+ ($key, $val) = ($1, $2);
+ }
+ elsif (/^\s+(.*)/) {
+ $val .= " $1";
+ }
+ elsif (!length) {
+ last FOOTER;
+ }
+ else {
+ $self->reason("Bad footer syntax");
+ return;
+ }
+ }
+ }
+ $r->push_header($key, $val) if $key;
}
elsif ($te) {
- $self->send_error(501); # Unknown transfer encoding
- $self->reason("Unknown transfer encoding '$te'");
- return;
+ $self->send_error(501); # Unknown transfer encoding
+ $self->reason("Unknown transfer encoding '$te'");
+ return;
}
elsif ($len) {
- # Plain body specified by "Content-Length"
- my $missing = $len - length($buf);
- while ($missing > 0) {
- print "Need $missing more bytes of content\n" if $DEBUG;
- my $n = $self->_need_more($buf, $timeout, $fdset);
- return unless $n;
- $missing -= $n;
- }
- if (length($buf) > $len) {
- $r->content(substr($buf,0,$len));
- substr($buf, 0, $len) = '';
- }
- else {
- $r->content($buf);
- $buf='';
- }
+
+ # Plain body specified by "Content-Length"
+ my $missing = $len - length($buf);
+ while ($missing > 0) {
+ print "Need $missing more bytes of content\n" if $DEBUG;
+ my $n = $self->_need_more($buf, $timeout, $fdset);
+ return unless $n;
+ $missing -= $n;
+ }
+ if (length($buf) > $len) {
+ $r->content(substr($buf, 0, $len));
+ substr($buf, 0, $len) = '';
+ }
+ else {
+ $r->content($buf);
+ $buf = '';
+ }
}
elsif ($ct && $ct =~ m/^multipart\/\w+\s*;.*boundary\s*=\s*("?)(\w+)\1/i) {
- # Handle multipart content type
- my $boundary = "$CRLF--$2--";
- my $index;
- while (1) {
- $index = index($buf, $boundary);
- last if $index >= 0;
- # end marker not yet found
- return unless $self->_need_more($buf, $timeout, $fdset);
- }
- $index += length($boundary);
- $r->content(substr($buf, 0, $index));
- substr($buf, 0, $index) = '';
+
+ # Handle multipart content type
+ my $boundary = "$CRLF--$2--";
+ my $index;
+ while (1) {
+ $index = index($buf, $boundary);
+ last if $index >= 0;
+
+ # end marker not yet found
+ return unless $self->_need_more($buf, $timeout, $fdset);
+ }
+ $index += length($boundary);
+ $r->content(substr($buf, 0, $index));
+ substr($buf, 0, $index) = '';
}
${*$self}{'httpd_rbuf'} = $buf;
@@ -319,19 +364,18 @@ sub get_request
$r;
}
-
-sub _need_more
-{
+sub _need_more {
my $self = shift;
+
#my($buf,$timeout,$fdset) = @_;
if ($_[1]) {
- my($timeout, $fdset) = @_[1,2];
- print STDERR "select(,,,$timeout)\n" if $DEBUG;
- my $n = select($fdset,undef,undef,$timeout);
- unless ($n) {
- $self->reason(defined($n) ? "Timeout" : "select: $!");
- return;
- }
+ my ($timeout, $fdset) = @_[1, 2];
+ print STDERR "select(,,,$timeout)\n" if $DEBUG;
+ my $n = select($fdset, undef, undef, $timeout);
+ unless ($n) {
+ $self->reason(defined($n) ? "Timeout" : "select: $!");
+ return;
+ }
}
print STDERR "sysread()\n" if $DEBUG;
my $n = sysread($self, $_[0], 2048, length($_[0]));
@@ -339,67 +383,53 @@ sub _need_more
$n;
}
-
-sub read_buffer
-{
+sub read_buffer {
my $self = shift;
- my $old = ${*$self}{'httpd_rbuf'};
+ my $old = ${*$self}{'httpd_rbuf'};
if (@_) {
- ${*$self}{'httpd_rbuf'} = shift;
+ ${*$self}{'httpd_rbuf'} = shift;
}
$old;
}
-
-sub reason
-{
+sub reason {
my $self = shift;
- my $old = ${*$self}{'httpd_reason'};
+ my $old = ${*$self}{'httpd_reason'};
if (@_) {
${*$self}{'httpd_reason'} = shift;
}
$old;
}
-
-sub proto_ge
-{
+sub proto_ge {
my $self = shift;
${*$self}{'httpd_client_proto'} >= _http_version(shift);
}
-
-sub _http_version
-{
- local($_) = shift;
+sub _http_version {
+ local ($_) = shift;
return 0 unless m,^(?:HTTP/)?(\d+)\.(\d+)$,i;
$1 * 1000 + $2;
}
-
-sub antique_client
-{
+sub antique_client {
my $self = shift;
${*$self}{'httpd_client_proto'} < $HTTP_1_0;
}
-
-sub force_last_request
-{
+sub force_last_request {
my $self = shift;
${*$self}{'httpd_nomore'}++;
}
-sub head_request
-{
+sub head_request {
my $self = shift;
${*$self}{'httpd_head'};
}
-sub send_status_line
-{
- my($self, $status, $message, $proto) = @_;
+sub send_status_line {
+ my ($self, $status, $message, $proto) = @_;
return if $self->antique_client;
$status ||= RC_OK;
$message ||= status_message($status) || "";
@@ -407,16 +437,12 @@ sub send_status_line
print $self "$proto $status $message$CRLF";
}
-
-sub send_crlf
-{
+sub send_crlf {
my $self = shift;
print $self $CRLF;
}
-
-sub send_basic_header
-{
+sub send_basic_header {
my $self = shift;
return if $self->antique_client;
$self->send_status_line(@_);
@@ -425,83 +451,80 @@ sub send_basic_header
print $self "Server: $product$CRLF" if $product;
}
-
-sub send_header
-{
+sub send_header {
my $self = shift;
while (@_) {
- my($k, $v) = splice(@_, 0, 2);
- $v = "" unless defined($v);
- print $self "$k: $v$CRLF";
+ my ($k, $v) = splice(@_, 0, 2);
+ $v = "" unless defined($v);
+ print $self "$k: $v$CRLF";
}
}
-
-sub send_response
-{
+sub send_response {
my $self = shift;
- my $res = shift;
+ my $res = shift;
if (!ref $res) {
- $res ||= RC_OK;
- $res = HTTP::Response->new($res, @_);
+ $res ||= RC_OK;
+ $res = HTTP::Response->new($res, @_);
}
my $content = $res->content;
my $chunked;
unless ($self->antique_client) {
- my $code = $res->code;
- $self->send_basic_header($code, $res->message, $res->protocol);
- if ($code =~ /^(1\d\d|[23]04)$/) {
- # make sure content is empty
- $res->remove_header("Content-Length");
- $content = "";
- }
- elsif ($res->request && $res->request->method eq "HEAD") {
- # probably OK
- }
- elsif (ref($content) eq "CODE") {
- if ($self->proto_ge("HTTP/1.1")) {
- $res->push_header("Transfer-Encoding" => "chunked");
- $chunked++;
- }
- else {
- $self->force_last_request;
- }
- }
- elsif (length($content)) {
- $res->header("Content-Length" => length($content));
- }
- else {
- $self->force_last_request;
- $res->header('connection','close');
- }
- print $self $res->headers_as_string($CRLF);
- print $self $CRLF; # separates headers and content
+ my $code = $res->code;
+ $self->send_basic_header($code, $res->message, $res->protocol);
+ if ($code =~ /^(1\d\d|[23]04)$/) {
+
+ # make sure content is empty
+ $res->remove_header("Content-Length");
+ $content = "";
+ }
+ elsif ($res->request && $res->request->method eq "HEAD") {
+
+ # probably OK
+ }
+ elsif (ref($content) eq "CODE") {
+ if ($self->proto_ge("HTTP/1.1")) {
+ $res->push_header("Transfer-Encoding" => "chunked");
+ $chunked++;
+ }
+ else {
+ $self->force_last_request;
+ }
+ }
+ elsif (length($content)) {
+ $res->header("Content-Length" => length($content));
+ }
+ else {
+ $self->force_last_request;
+ $res->header('connection', 'close');
+ }
+ print $self $res->headers_as_string($CRLF);
+ print $self $CRLF; # separates headers and content
}
if ($self->head_request) {
- # no content
+
+ # no content
}
elsif (ref($content) eq "CODE") {
- while (1) {
- my $chunk = &$content();
- last unless defined($chunk) && length($chunk);
- if ($chunked) {
- printf $self "%x%s%s%s", length($chunk), $CRLF, $chunk, $CRLF;
- }
- else {
- print $self $chunk;
- }
- }
- print $self "0$CRLF$CRLF" if $chunked; # no trailers either
+ while (1) {
+ my $chunk = &$content();
+ last unless defined($chunk) && length($chunk);
+ if ($chunked) {
+ printf $self "%x%s%s%s", length($chunk), $CRLF, $chunk, $CRLF;
+ }
+ else {
+ print $self $chunk;
+ }
+ }
+ print $self "0$CRLF$CRLF" if $chunked; # no trailers either
}
elsif (length $content) {
- print $self $content;
+ print $self $content;
}
}
-
-sub send_redirect
-{
- my($self, $loc, $status, $content) = @_;
+sub send_redirect {
+ my ($self, $loc, $status, $content) = @_;
$status ||= RC_MOVED_PERMANENTLY;
Carp::croak("Status '$status' is not redirect") unless is_redirect($status);
$self->send_basic_header($status);
@@ -509,23 +532,22 @@ sub send_redirect
$loc = $HTTP::URI_CLASS->new($loc, $base) unless ref($loc);
$loc = $loc->abs($base);
print $self "Location: $loc$CRLF";
+
if ($content) {
- my $ct = $content =~ /^\s*</ ? "text/html" : "text/plain";
- print $self "Content-Type: $ct$CRLF";
+ my $ct = $content =~ /^\s*</ ? "text/html" : "text/plain";
+ print $self "Content-Type: $ct$CRLF";
}
print $self $CRLF;
print $self $content if $content && !$self->head_request;
- $self->force_last_request; # no use keeping the connection open
+ $self->force_last_request; # no use keeping the connection open
}
-
-sub send_error
-{
- my($self, $status, $error) = @_;
+sub send_error {
+ my ($self, $status, $error) = @_;
$status ||= RC_BAD_REQUEST;
Carp::croak("Status '$status' is not an error") unless is_error($status);
my $mess = status_message($status);
- $error ||= "";
+ $error ||= "";
$mess = <<EOT;
<title>$status $mess</title>
<h1>$status $mess</h1>
@@ -534,79 +556,71 @@ EOT
unless ($self->antique_client) {
$self->send_basic_header($status);
print $self "Content-Type: text/html$CRLF";
- print $self "Content-Length: " . length($mess) . $CRLF;
+ print $self "Content-Length: " . length($mess) . $CRLF;
print $self $CRLF;
}
print $self $mess unless $self->head_request;
$status;
}
-
-sub send_file_response
-{
- my($self, $file) = @_;
+sub send_file_response {
+ my ($self, $file) = @_;
if (-d $file) {
- $self->send_dir($file);
+ $self->send_dir($file);
}
elsif (-f _) {
- # plain file
- local(*F);
- sysopen(F, $file, 0) or
- return $self->send_error(RC_FORBIDDEN);
- binmode(F);
- my($ct,$ce) = guess_media_type($file);
- my($size,$mtime) = (stat _)[7,9];
- unless ($self->antique_client) {
- $self->send_basic_header;
- print $self "Content-Type: $ct$CRLF";
- print $self "Content-Encoding: $ce$CRLF" if $ce;
- print $self "Content-Length: $size$CRLF" if $size;
- print $self "Last-Modified: ", time2str($mtime), "$CRLF" if $mtime;
- print $self $CRLF;
- }
- $self->send_file(\*F) unless $self->head_request;
- return RC_OK;
+
+ # plain file
+ local (*F);
+ sysopen(F, $file, 0) or return $self->send_error(RC_FORBIDDEN);
+ binmode(F);
+ my ($ct, $ce) = guess_media_type($file);
+ my ($size, $mtime) = (stat _)[7, 9];
+ unless ($self->antique_client) {
+ $self->send_basic_header;
+ print $self "Content-Type: $ct$CRLF";
+ print $self "Content-Encoding: $ce$CRLF" if $ce;
+ print $self "Content-Length: $size$CRLF" if $size;
+ print $self "Last-Modified: ", time2str($mtime), "$CRLF" if $mtime;
+ print $self $CRLF;
+ }
+ $self->send_file(\*F) unless $self->head_request;
+ return RC_OK;
}
else {
- $self->send_error(RC_NOT_FOUND);
+ $self->send_error(RC_NOT_FOUND);
}
}
-
-sub send_dir
-{
- my($self, $dir) = @_;
+sub send_dir {
+ my ($self, $dir) = @_;
$self->send_error(RC_NOT_FOUND) unless -d $dir;
$self->send_error(RC_NOT_IMPLEMENTED);
}
-
-sub send_file
-{
- my($self, $file) = @_;
+sub send_file {
+ my ($self, $file) = @_;
my $opened = 0;
- local(*FILE);
+ local (*FILE);
if (!ref($file)) {
- open(FILE, $file) || return undef;
- binmode(FILE);
- $file = \*FILE;
- $opened++;
+ open(FILE, $file) || return undef;
+ binmode(FILE);
+ $file = \*FILE;
+ $opened++;
}
my $cnt = 0;
my $buf = "";
my $n;
- while ($n = sysread($file, $buf, 8*1024)) {
- last if !$n;
- $cnt += $n;
- print $self $buf;
+ while ($n = sysread($file, $buf, 8 * 1024)) {
+ last if !$n;
+ $cnt += $n;
+ print $self $buf;
}
close($file) if $opened;
$cnt;
}
-
-sub daemon
-{
+sub daemon {
my $self = shift;
${*$self}{'httpd_daemon'};
}
@@ -616,9 +630,17 @@ sub daemon
__END__
+=pod
+
+=encoding UTF-8
+
=head1 NAME
-HTTP::Daemon - a simple http server class
+HTTP::Daemon - A simple http server class
+
+=head1 VERSION
+
+version 6.06
=head1 SYNOPSIS
@@ -645,12 +667,12 @@ HTTP::Daemon - a simple http server class
Instances of the C<HTTP::Daemon> class are HTTP/1.1 servers that
listen on a socket for incoming requests. The C<HTTP::Daemon> is a
-subclass of C<IO::Socket::INET>, so you can perform socket operations
+subclass of C<IO::Socket::IP>, so you can perform socket operations
directly on it too.
The accept() method will return when a connection from a client is
available. The returned value will be an C<HTTP::Daemon::ClientConn>
-object which is another C<IO::Socket::INET> subclass. Calling the
+object which is another C<IO::Socket::IP> subclass. Calling the
get_request() method on this object will read data from the client and
return an C<HTTP::Request> object. The ClientConn object also provide
methods to send back various responses.
@@ -661,7 +683,7 @@ desirable. Also note that the user is responsible for generating
responses that conform to the HTTP/1.1 protocol.
The following methods of C<HTTP::Daemon> are new (or enhanced) relative
-to the C<IO::Socket::INET> base class:
+to the C<IO::Socket::IP> base class:
=over 4
@@ -670,7 +692,7 @@ to the C<IO::Socket::INET> base class:
=item $d = HTTP::Daemon->new( %opts )
The constructor method takes the same arguments as the
-C<IO::Socket::INET> constructor, but unlike its base class it can also
+C<IO::Socket::IP> constructor, but unlike its base class it can also
be called without any arguments. The daemon will then set up a listen
queue of 5 connections and allocate some random port number.
@@ -682,7 +704,7 @@ HTTP port will be constructed like this:
LocalPort => 80,
);
-See L<IO::Socket::INET> for a description of other arguments that can
+See L<IO::Socket::IP> for a description of other arguments that can
be used configure the daemon during construction.
=item $c = $d->accept
@@ -699,7 +721,7 @@ class a subclass of C<HTTP::Daemon::ClientConn>.
The accept method will return C<undef> if timeouts have been enabled
and no connection is made within the given time. The timeout() method
-is described in L<IO::Socket>.
+is described in L<IO::Socket::IP>.
In list context both the client object and the peer address will be
returned; see the description of the accept method L<IO::Socket> for
@@ -721,7 +743,7 @@ replaced with the version number of this module.
=back
-The C<HTTP::Daemon::ClientConn> is a C<IO::Socket::INET>
+The C<HTTP::Daemon::ClientConn> is a C<IO::Socket::IP>
subclass. Instances of this class are returned by the accept() method
of C<HTTP::Daemon>. The following methods are provided:
@@ -895,12 +917,219 @@ Return a reference to the corresponding C<HTTP::Daemon> object.
RFC 2616
-L<IO::Socket::INET>, L<IO::Socket>
+L<IO::Socket::IP>, L<IO::Socket>
+
+=head1 SUPPORT
+
+bugs may be submitted through L<https://github.com/libwww-perl/HTTP-Daemon/issues>.
+
+There is also a mailing list available for users of this distribution, at
+L<mailto:libwww@perl.org>.
+
+There is also an irc channel available for users of this distribution, at
+L<C<#lwp> on C<irc.perl.org>|irc://irc.perl.org/#lwp>.
+
+=head1 AUTHOR
+
+Gisle Aas <gisle@activestate.com>
+
+=head1 CONTRIBUTORS
+
+=for stopwords Ville Skyttä Olaf Alders Mark Stosberg Karen Etheridge Chase Whitener Slaven Rezic Zefram Alexey Tourbin Bron Gondwana Petr Písař Mike Schilli Tom Hukins Ian Kilgore Jacob J Ondrej Hanak Perlover Peter Rabbitson Robert Stone Rolf Grossmann Sean M. Burke Spiros Denaxas Steve Hay Todd Lipcon Tony Finch Toru Yamaguchi Yuri Karaban amire80 jefflee john9art murphy phrstbrn ruff Adam Kennedy sasao Sjogren Alex Kapranoff Andreas J. Koenig Bill Mann DAVIDRW Daniel Hedlund David E. Wheeler FWILES Father Chrysostomos Gavin Peters Graeme Thompson Hans-H. Froehlich
+
+=over 4
+
+=item *
+
+Ville Skyttä <ville.skytta@iki.fi>
+
+=item *
+
+Olaf Alders <olaf@wundersolutions.com>
+
+=item *
+
+Mark Stosberg <MARKSTOS@cpan.org>
+
+=item *
+
+Karen Etheridge <ether@cpan.org>
+
+=item *
+
+Chase Whitener <capoeirab@cpan.org>
+
+=item *
+
+Slaven Rezic <slaven@rezic.de>
+
+=item *
+
+Zefram <zefram@fysh.org>
+
+=item *
+
+Alexey Tourbin <at@altlinux.ru>
+
+=item *
+
+Bron Gondwana <brong@fastmail.fm>
+
+=item *
+
+Petr Písař <ppisar@redhat.com>
+
+=item *
+
+Mike Schilli <mschilli@yahoo-inc.com>
+
+=item *
+
+Tom Hukins <tom@eborcom.com>
+
+=item *
+
+Ian Kilgore <iank@cpan.org>
+
+=item *
+
+Jacob J <waif@chaos2.org>
+
+=item *
+
+Ondrej Hanak <ondrej.hanak@ubs.com>
+
+=item *
+
+Perlover <perlover@perlover.com>
+
+=item *
+
+Peter Rabbitson <ribasushi@cpan.org>
+
+=item *
+
+Robert Stone <talby@trap.mtview.ca.us>
+
+=item *
+
+Rolf Grossmann <rg@progtech.net>
+
+=item *
+
+Sean M. Burke <sburke@cpan.org>
+
+=item *
+
+Spiros Denaxas <s.denaxas@gmail.com>
+
+=item *
+
+Steve Hay <SteveHay@planit.com>
+
+=item *
+
+Todd Lipcon <todd@amiestreet.com>
+
+=item *
+
+Tony Finch <dot@dotat.at>
+
+=item *
+
+Toru Yamaguchi <zigorou@cpan.org>
+
+=item *
+
+Yuri Karaban <tech@askold.net>
+
+=item *
+
+amire80 <amir.aharoni@gmail.com>
+
+=item *
+
+jefflee <shaohua@gmail.com>
+
+=item *
+
+john9art <john9art@yahoo.com>
+
+=item *
+
+murphy <murphy@genome.chop.edu>
+
+=item *
+
+phrstbrn <phrstbrn@gmail.com>
+
+=item *
+
+ruff <ruff@ukrpost.net>
+
+=item *
+
+Adam Kennedy <adamk@cpan.org>
+
+=item *
+
+sasao <sasao@yugen.org>
+
+=item *
+
+Adam Sjogren <asjo@koldfront.dk>
+
+=item *
+
+Alex Kapranoff <ka@nadoby.ru>
+
+=item *
+
+Andreas J. Koenig <andreas.koenig@anima.de>
+
+=item *
+
+Bill Mann <wfmann@alum.mit.edu>
+
+=item *
+
+DAVIDRW <davidrw@cpan.org>
+
+=item *
+
+Daniel Hedlund <Daniel.Hedlund@eprize.com>
+
+=item *
+
+David E. Wheeler <david@justatheory.com>
+
+=item *
+
+FWILES <FWILES@cpan.org>
+
+=item *
+
+Father Chrysostomos <sprout@cpan.org>
+
+=item *
+
+Gavin Peters <gpeters@deepsky.com>
+
+=item *
+
+Graeme Thompson <Graeme.Thompson@mobilecohesion.com>
+
+=item *
+
+Hans-H. Froehlich <hfroehlich@co-de-co.de>
+
+=back
-=head1 COPYRIGHT
+=head1 COPYRIGHT AND LICENCE
-Copyright 1996-2003, Gisle Aas
+This software is copyright (c) 1995 by Gisle Aas.
-This library is free software; you can redistribute it and/or
-modify it under the same terms as Perl itself.
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+=cut
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Date.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Date.pm
index d05d21605ae..a57d0b8deda 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Date.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Date.pm
@@ -1,175 +1,188 @@
package HTTP::Date;
-$VERSION = "6.02";
+use strict;
+
+our $VERSION = '6.05';
require Exporter;
-@ISA = qw(Exporter);
-@EXPORT = qw(time2str str2time);
-@EXPORT_OK = qw(parse_date time2iso time2isoz);
+our @ISA = qw(Exporter);
+our @EXPORT = qw(time2str str2time);
+our @EXPORT_OK = qw(parse_date time2iso time2isoz);
-use strict;
require Time::Local;
-use vars qw(@DoW @MoY %MoY);
-@DoW = qw(Sun Mon Tue Wed Thu Fri Sat);
-@MoY = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
-@MoY{@MoY} = (1..12);
-
-my %GMT_ZONE = (GMT => 1, UTC => 1, UT => 1, Z => 1);
+our ( @DoW, @MoY, %MoY );
+@DoW = qw(Sun Mon Tue Wed Thu Fri Sat);
+@MoY = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
+@MoY{@MoY} = ( 1 .. 12 );
+my %GMT_ZONE = ( GMT => 1, UTC => 1, UT => 1, Z => 1 );
-sub time2str (;$)
-{
+sub time2str (;$) {
my $time = shift;
$time = time unless defined $time;
- my ($sec, $min, $hour, $mday, $mon, $year, $wday) = gmtime($time);
- sprintf("%s, %02d %s %04d %02d:%02d:%02d GMT",
- $DoW[$wday],
- $mday, $MoY[$mon], $year+1900,
- $hour, $min, $sec);
+ my ( $sec, $min, $hour, $mday, $mon, $year, $wday ) = gmtime($time);
+ sprintf(
+ "%s, %02d %s %04d %02d:%02d:%02d GMT",
+ $DoW[$wday],
+ $mday, $MoY[$mon], $year + 1900,
+ $hour, $min, $sec
+ );
}
-
-sub str2time ($;$)
-{
+sub str2time ($;$) {
my $str = shift;
return undef unless defined $str;
# fast exit for strictly conforming string
- if ($str =~ /^[SMTWF][a-z][a-z], (\d\d) ([JFMAJSOND][a-z][a-z]) (\d\d\d\d) (\d\d):(\d\d):(\d\d) GMT$/) {
- return eval {
- my $t = Time::Local::timegm($6, $5, $4, $1, $MoY{$2}-1, $3);
- $t < 0 ? undef : $t;
- };
+ if ( $str
+ =~ /^[SMTWF][a-z][a-z], (\d\d) ([JFMAJSOND][a-z][a-z]) (\d\d\d\d) (\d\d):(\d\d):(\d\d) GMT$/
+ ) {
+ return eval {
+ my $t = Time::Local::timegm( $6, $5, $4, $1, $MoY{$2} - 1, $3 );
+ $t < 0 ? undef : $t;
+ };
}
my @d = parse_date($str);
return undef unless @d;
- $d[1]--; # month
+ $d[1]--; # month
my $tz = pop(@d);
- unless (defined $tz) {
- unless (defined($tz = shift)) {
- return eval { my $frac = $d[-1]; $frac -= ($d[-1] = int($frac));
- my $t = Time::Local::timelocal(reverse @d) + $frac;
- $t < 0 ? undef : $t;
- };
- }
+ unless ( defined $tz ) {
+ unless ( defined( $tz = shift ) ) {
+ return eval {
+ my $frac = $d[-1];
+ $frac -= ( $d[-1] = int($frac) );
+ my $t = Time::Local::timelocal( reverse @d ) + $frac;
+ $t < 0 ? undef : $t;
+ };
+ }
}
my $offset = 0;
- if ($GMT_ZONE{uc $tz}) {
- # offset already zero
+ if ( $GMT_ZONE{ uc $tz } ) {
+
+ # offset already zero
}
- elsif ($tz =~ /^([-+])?(\d\d?):?(\d\d)?$/) {
- $offset = 3600 * $2;
- $offset += 60 * $3 if $3;
- $offset *= -1 if $1 && $1 eq '-';
+ elsif ( $tz =~ /^([-+])?(\d\d?):?(\d\d)?$/ ) {
+ $offset = 3600 * $2;
+ $offset += 60 * $3 if $3;
+ $offset *= -1 if $1 && $1 eq '-';
}
else {
- eval { require Time::Zone } || return undef;
- $offset = Time::Zone::tz_offset($tz);
- return undef unless defined $offset;
+ eval { require Time::Zone } || return undef;
+ $offset = Time::Zone::tz_offset($tz);
+ return undef unless defined $offset;
}
- return eval { my $frac = $d[-1]; $frac -= ($d[-1] = int($frac));
- my $t = Time::Local::timegm(reverse @d) + $frac;
- $t < 0 ? undef : $t - $offset;
- };
+ return eval {
+ my $frac = $d[-1];
+ $frac -= ( $d[-1] = int($frac) );
+ my $t = Time::Local::timegm( reverse @d ) + $frac;
+ $t < 0 ? undef : $t - $offset;
+ };
}
-
-sub parse_date ($)
-{
- local($_) = shift;
+sub parse_date ($) {
+ local ($_) = shift;
return unless defined;
# More lax parsing below
- s/^\s+//; # kill leading space
- s/^(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)[a-z]*,?\s*//i; # Useless weekday
+ s/^\s+//; # kill leading space
+ s/^(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)[a-z]*,?\s*//i; # Useless weekday
- my($day, $mon, $yr, $hr, $min, $sec, $tz, $ampm);
+ my ( $day, $mon, $yr, $hr, $min, $sec, $tz, $ampm );
# Then we are able to check for most of the formats with this regexp
- (($day,$mon,$yr,$hr,$min,$sec,$tz) =
- /^
- (\d\d?) # day
- (?:\s+|[-\/])
- (\w+) # month
- (?:\s+|[-\/])
- (\d+) # year
- (?:
- (?:\s+|:) # separator before clock
- (\d\d?):(\d\d) # hour:min
- (?::(\d\d))? # optional seconds
- )? # optional clock
- \s*
- ([-+]?\d{2,4}|(?![APap][Mm]\b)[A-Za-z]+)? # timezone
- \s*
- (?:\(\w+\)|\w{3,})? # ASCII representation of timezone.
- \s*$
- /x)
-
- ||
-
- # Try the ctime and asctime format
- (($mon, $day, $hr, $min, $sec, $tz, $yr) =
- /^
- (\w{1,3}) # month
- \s+
- (\d\d?) # day
- \s+
- (\d\d?):(\d\d) # hour:min
- (?::(\d\d))? # optional seconds
- \s+
- (?:([A-Za-z]+)\s+)? # optional timezone
- (\d+) # year
- \s*$ # allow trailing whitespace
- /x)
-
- ||
-
- # Then the Unix 'ls -l' date format
- (($mon, $day, $yr, $hr, $min, $sec) =
- /^
- (\w{3}) # month
- \s+
- (\d\d?) # day
- \s+
- (?:
- (\d\d\d\d) | # year
- (\d{1,2}):(\d{2}) # hour:min
+ (
+ ( $day, $mon, $yr, $hr, $min, $sec, $tz )
+ = /^
+ (\d\d?) # day
+ (?:\s+|[-\/])
+ (\w+) # month
+ (?:\s+|[-\/])
+ (\d+) # year
+ (?:
+ (?:\s+|:) # separator before clock
+ (\d\d?):(\d\d) # hour:min
+ (?::(\d\d))? # optional seconds
+ )? # optional clock
+ \s*
+ ([-+]?\d{2,4}|(?![APap][Mm]\b)[A-Za-z]+)? # timezone
+ \s*
+ (?:\(\w+\)|\w{3,})? # ASCII representation of timezone.
+ \s*$
+ /x
+ )
+
+ ||
+
+ # Try the ctime and asctime format
+ (
+ ( $mon, $day, $hr, $min, $sec, $tz, $yr )
+ = /^
+ (\w{1,3}) # month
+ \s+
+ (\d\d?) # day
+ \s+
+ (\d\d?):(\d\d) # hour:min
+ (?::(\d\d))? # optional seconds
+ \s+
+ (?:([A-Za-z]+)\s+)? # optional timezone
+ (\d+) # year
+ \s*$ # allow trailing whitespace
+ /x
+ )
+
+ ||
+
+ # Then the Unix 'ls -l' date format
+ (
+ ( $mon, $day, $yr, $hr, $min, $sec )
+ = /^
+ (\w{3}) # month
+ \s+
+ (\d\d?) # day
+ \s+
+ (?:
+ (\d\d\d\d) | # year
+ (\d{1,2}):(\d{2}) # hour:min
(?::(\d\d))? # optional seconds
- )
- \s*$
- /x)
-
- ||
-
- # ISO 8601 format '1996-02-29 12:00:00 -0100' and variants
- (($yr, $mon, $day, $hr, $min, $sec, $tz) =
- /^
- (\d{4}) # year
- [-\/]?
- (\d\d?) # numerical month
- [-\/]?
- (\d\d?) # day
- (?:
- (?:\s+|[-:Tt]) # separator before clock
- (\d\d?):?(\d\d) # hour:min
- (?::?(\d\d(?:\.\d*)?))? # optional seconds (and fractional)
- )? # optional clock
- \s*
- ([-+]?\d\d?:?(:?\d\d)?
- |Z|z)? # timezone (Z is "zero meridian", i.e. GMT)
- \s*$
- /x)
-
- ||
-
- # Windows 'dir' 11-12-96 03:52PM
- (($mon, $day, $yr, $hr, $min, $ampm) =
- /^
+ )
+ \s*$
+ /x
+ )
+
+ ||
+
+ # ISO 8601 format '1996-02-29 12:00:00 -0100' and variants
+ (
+ ( $yr, $mon, $day, $hr, $min, $sec, $tz )
+ = /^
+ (\d{4}) # year
+ [-\/]?
+ (\d\d?) # numerical month
+ [-\/]?
+ (\d\d?) # day
+ (?:
+ (?:\s+|[-:Tt]) # separator before clock
+ (\d\d?):?(\d\d) # hour:min
+ (?::?(\d\d(?:\.\d*)?))? # optional seconds (and fractional)
+ )? # optional clock
+ \s*
+ ([-+]?\d\d?:?(:?\d\d)?
+ |Z|z)? # timezone (Z is "zero meridian", i.e. GMT)
+ \s*$
+ /x
+ )
+
+ ||
+
+ # Windows 'dir' 11-12-96 03:52PM
+ (
+ ( $mon, $day, $yr, $hr, $min, $ampm )
+ = /^
(\d{2}) # numerical month
-
(\d{2}) # day
@@ -178,36 +191,38 @@ sub parse_date ($)
\s+
(\d\d?):(\d\d)([APap][Mm]) # hour:min AM or PM
\s*$
- /x)
+ /x
+ )
- ||
- return; # unrecognized format
+ || return; # unrecognized format
# Translate month name to number
- $mon = $MoY{$mon} ||
- $MoY{"\u\L$mon"} ||
- ($mon =~ /^\d\d?$/ && $mon >= 1 && $mon <= 12 && int($mon)) ||
- return;
+ $mon
+ = $MoY{$mon}
+ || $MoY{"\u\L$mon"}
+ || ( $mon =~ /^\d\d?$/ && $mon >= 1 && $mon <= 12 && int($mon) )
+ || return;
# If the year is missing, we assume first date before the current,
# because of the formats we support such dates are mostly present
# on "ls -l" listings.
- unless (defined $yr) {
- my $cur_mon;
- ($cur_mon, $yr) = (localtime)[4, 5];
- $yr += 1900;
- $cur_mon++;
- $yr-- if $mon > $cur_mon;
+ unless ( defined $yr ) {
+ my $cur_mon;
+ ( $cur_mon, $yr ) = (localtime)[ 4, 5 ];
+ $yr += 1900;
+ $cur_mon++;
+ $yr-- if $mon > $cur_mon;
}
- elsif (length($yr) < 3) {
- # Find "obvious" year
- my $cur_yr = (localtime)[5] + 1900;
- my $m = $cur_yr % 100;
- my $tmp = $yr;
- $yr += $cur_yr - $m;
- $m -= $tmp;
- $yr += ($m > 0) ? 100 : -100
- if abs($m) > 50;
+ elsif ( length($yr) < 3 ) {
+
+ # Find "obvious" year
+ my $cur_yr = (localtime)[5] + 1900;
+ my $m = $cur_yr % 100;
+ my $tmp = $yr;
+ $yr += $cur_yr - $m;
+ $m -= $tmp;
+ $yr += ( $m > 0 ) ? 100 : -100
+ if abs($m) > 50;
}
# Make sure clock elements are defined
@@ -217,52 +232,64 @@ sub parse_date ($)
# Compensate for AM/PM
if ($ampm) {
- $ampm = uc $ampm;
- $hr = 0 if $hr == 12 && $ampm eq 'AM';
- $hr += 12 if $ampm eq 'PM' && $hr != 12;
+ $ampm = uc $ampm;
+ $hr = 0 if $hr == 12 && $ampm eq 'AM';
+ $hr += 12 if $ampm eq 'PM' && $hr != 12;
}
- return($yr, $mon, $day, $hr, $min, $sec, $tz)
- if wantarray;
+ return ( $yr, $mon, $day, $hr, $min, $sec, $tz )
+ if wantarray;
- if (defined $tz) {
- $tz = "Z" if $tz =~ /^(GMT|UTC?|[-+]?0+)$/;
+ if ( defined $tz ) {
+ $tz = "Z" if $tz =~ /^(GMT|UTC?|[-+]?0+)$/;
}
else {
- $tz = "";
+ $tz = "";
}
- return sprintf("%04d-%02d-%02d %02d:%02d:%02d%s",
- $yr, $mon, $day, $hr, $min, $sec, $tz);
+ return sprintf(
+ "%04d-%02d-%02d %02d:%02d:%02d%s",
+ $yr, $mon, $day, $hr, $min, $sec, $tz
+ );
}
-
-sub time2iso (;$)
-{
+sub time2iso (;$) {
my $time = shift;
$time = time unless defined $time;
- my($sec,$min,$hour,$mday,$mon,$year) = localtime($time);
- sprintf("%04d-%02d-%02d %02d:%02d:%02d",
- $year+1900, $mon+1, $mday, $hour, $min, $sec);
+ my ( $sec, $min, $hour, $mday, $mon, $year ) = localtime($time);
+ sprintf(
+ "%04d-%02d-%02d %02d:%02d:%02d",
+ $year + 1900, $mon + 1, $mday, $hour, $min, $sec
+ );
}
-
-sub time2isoz (;$)
-{
+sub time2isoz (;$) {
my $time = shift;
$time = time unless defined $time;
- my($sec,$min,$hour,$mday,$mon,$year) = gmtime($time);
- sprintf("%04d-%02d-%02d %02d:%02d:%02dZ",
- $year+1900, $mon+1, $mday, $hour, $min, $sec);
+ my ( $sec, $min, $hour, $mday, $mon, $year ) = gmtime($time);
+ sprintf(
+ "%04d-%02d-%02d %02d:%02d:%02dZ",
+ $year + 1900, $mon + 1, $mday, $hour, $min, $sec
+ );
}
1;
+# ABSTRACT: HTTP::Date - date conversion routines
+#
__END__
+=pod
+
+=encoding UTF-8
+
=head1 NAME
-HTTP::Date - date conversion routines
+HTTP::Date - HTTP::Date - date conversion routines
+
+=head1 VERSION
+
+version 6.05
=head1 SYNOPSIS
@@ -371,18 +398,21 @@ string representing time in the local time zone.
Same as time2str(), but returns a "YYYY-MM-DD hh:mm:ssZ"-formatted
string representing Universal Time.
-
=back
=head1 SEE ALSO
L<perlfunc/time>, L<Time::Zone>
-=head1 COPYRIGHT
+=head1 AUTHOR
+
+Gisle Aas <gisle@activestate.com>
+
+=head1 COPYRIGHT AND LICENSE
-Copyright 1995-1999, Gisle Aas
+This software is copyright (c) 1995-2019 by Gisle Aas.
-This library is free software; you can redistribute it and/or
-modify it under the same terms as Perl itself.
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
=cut
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Headers.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Headers.pm
index 1c25c799828..4e7b1054a0d 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Headers.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Headers.pm
@@ -3,7 +3,7 @@ package HTTP::Headers;
use strict;
use warnings;
-our $VERSION = '6.18';
+our $VERSION = '6.22';
use Carp ();
@@ -475,7 +475,7 @@ HTTP::Headers - Class encapsulating HTTP Message headers
=head1 VERSION
-version 6.18
+version 6.22
=head1 SYNOPSIS
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Headers/Auth.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Headers/Auth.pm
index 462cf628dac..0e9f16d8496 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Headers/Auth.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Headers/Auth.pm
@@ -3,7 +3,7 @@ package HTTP::Headers::Auth;
use strict;
use warnings;
-our $VERSION = '6.18';
+our $VERSION = '6.22';
use HTTP::Headers;
@@ -111,7 +111,7 @@ HTTP::Headers::Auth
=head1 VERSION
-version 6.18
+version 6.22
=head1 AUTHOR
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Headers/ETag.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Headers/ETag.pm
index 02d6249b06c..e7013e7a4dc 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Headers/ETag.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Headers/ETag.pm
@@ -3,7 +3,7 @@ package HTTP::Headers::ETag;
use strict;
use warnings;
-our $VERSION = '6.18';
+our $VERSION = '6.22';
require HTTP::Date;
@@ -107,7 +107,7 @@ HTTP::Headers::ETag
=head1 VERSION
-version 6.18
+version 6.22
=head1 AUTHOR
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Headers/Util.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Headers/Util.pm
index dc07eb32ad2..4a44b4235d9 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Headers/Util.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Headers/Util.pm
@@ -3,7 +3,7 @@ package HTTP::Headers::Util;
use strict;
use warnings;
-our $VERSION = '6.18';
+our $VERSION = '6.22';
use base 'Exporter';
@@ -103,7 +103,7 @@ HTTP::Headers::Util - Header value parsing utility functions
=head1 VERSION
-version 6.18
+version 6.22
=head1 SYNOPSIS
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Message.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Message.pm
index 078209e8edf..c680b41f4ff 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Message.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Message.pm
@@ -3,7 +3,7 @@ package HTTP::Message;
use strict;
use warnings;
-our $VERSION = '6.18';
+our $VERSION = '6.22';
require HTTP::Headers;
require Carp;
@@ -417,6 +417,7 @@ sub decodable
# should match the Content-Encoding values that decoded_content can deal with
my $self = shift;
my @enc;
+ local $@;
# XXX preferably we should determine if the modules are available without loading
# them here
eval {
@@ -781,7 +782,7 @@ HTTP::Message - HTTP style message (base class)
=head1 VERSION
-version 6.18
+version 6.22
=head1 SYNOPSIS
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Request.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Request.pm
index 8998ceda3b0..6eee474db2b 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Request.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Request.pm
@@ -3,7 +3,7 @@ package HTTP::Request;
use strict;
use warnings;
-our $VERSION = '6.18';
+our $VERSION = '6.22';
use base 'HTTP::Message';
@@ -92,7 +92,17 @@ sub uri
sub uri_canonical
{
my $self = shift;
- return $self->{'_uri_canonical'} ||= $self->{'_uri'}->canonical;
+
+ my $uri = $self->{_uri};
+
+ if (defined (my $canon = $self->{_uri_canonical})) {
+ # early bailout if these are the exact same string; try to use
+ # the cheapest comparison method possible
+ return $canon if $$canon eq $$uri;
+ }
+
+ # otherwise we need to refresh the memoized value
+ $self->{_uri_canonical} = $uri->canonical;
}
@@ -145,7 +155,7 @@ HTTP::Request - HTTP style request message
=head1 VERSION
-version 6.18
+version 6.22
=head1 SYNOPSIS
@@ -251,14 +261,13 @@ to an endpoint.
use strict;
use warnings;
- use Encode qw(encode_utf8);
use HTTP::Request ();
use JSON::MaybeXS qw(encode_json);
my $url = 'https://www.example.com/api/user/123';
my $header = ['Content-Type' => 'application/json; charset=UTF-8'];
my $data = {foo => 'bar', baz => 'quux'};
- my $encoded_data = encode_utf8(encode_json($data));
+ my $encoded_data = encode_json($data);
my $r = HTTP::Request->new('POST', $url, $header, $encoded_data);
# at this point, we could send it via LWP::UserAgent
@@ -276,7 +285,6 @@ C<add_part> method from L<HTTP::Message> makes this simple.
use strict;
use warnings;
- use Encode qw(encode_utf8);
use HTTP::Request ();
use JSON::MaybeXS qw(encode_json);
@@ -317,7 +325,7 @@ C<add_part> method from L<HTTP::Message> makes this simple.
sub build_json_request {
my ($url, $href) = @_;
my $header = ['Authorization' => "Bearer $auth_token", 'Content-Type' => 'application/json; charset=UTF-8'];
- return HTTP::Request->new('POST', $url, $header, encode_utf8(encode_json($href)));
+ return HTTP::Request->new('POST', $url, $header, encode_json($href));
}
=head1 SEE ALSO
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Request/Common.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Request/Common.pm
index d70a9395710..17833c8f4f9 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Request/Common.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Request/Common.pm
@@ -3,13 +3,13 @@ package HTTP::Request::Common;
use strict;
use warnings;
-our $VERSION = '6.18';
+our $VERSION = '6.22';
our $DYNAMIC_FILE_UPLOAD ||= 0; # make it defined (don't know why)
use Exporter 5.57 'import';
-our @EXPORT =qw(GET HEAD PUT PATCH POST);
+our @EXPORT =qw(GET HEAD PUT PATCH POST OPTIONS);
our @EXPORT_OK = qw($DYNAMIC_FILE_UPLOAD DELETE);
require HTTP::Request;
@@ -23,6 +23,7 @@ sub DELETE { _simple_req('DELETE', @_); }
sub PATCH { request_type_with_data('PATCH', @_); }
sub POST { request_type_with_data('POST', @_); }
sub PUT { request_type_with_data('PUT', @_); }
+sub OPTIONS { request_type_with_data('OPTIONS', @_); }
sub request_type_with_data
{
@@ -312,7 +313,7 @@ HTTP::Request::Common - Construct common HTTP::Request objects
=head1 VERSION
-version 6.18
+version 6.22
=head1 SYNOPSIS
@@ -322,6 +323,7 @@ version 6.18
$ua->request(POST 'http://somewhere/foo', [foo => bar, bar => foo]);
$ua->request(PATCH 'http://somewhere/foo', [foo => bar, bar => foo]);
$ua->request(PUT 'http://somewhere/foo', [foo => bar, bar => foo]);
+ $ua->request(OPTIONS 'http://somewhere/foo', [foo => bar, bar => foo]);
=head1 DESCRIPTION
@@ -398,6 +400,18 @@ The same as C<POST> below, but the method in the request is C<PATCH>.
The same as C<POST> below, but the method in the request is C<PUT>
+=item OPTIONS $url
+
+=item OPTIONS $url, Header => Value,...
+
+=item OPTIONS $url, $form_ref, Header => Value,...
+
+=item OPTIONS $url, Header => Value,..., Content => $form_ref
+
+=item OPTIONS $url, Header => Value,..., Content => $content
+
+The same as C<POST> below, but the method in the request is C<OPTIONS>
+
=item POST $url
=item POST $url, Header => Value,...
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Response.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Response.pm
index 31d7a387fe0..e212586d0b5 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Response.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Response.pm
@@ -3,7 +3,7 @@ package HTTP::Response;
use strict;
use warnings;
-our $VERSION = '6.18';
+our $VERSION = '6.22';
use base 'HTTP::Message';
@@ -351,7 +351,7 @@ HTTP::Response - HTTP style response message
=head1 VERSION
-version 6.18
+version 6.22
=head1 SYNOPSIS
diff --git a/Master/tlpkg/tlperl/site/lib/HTTP/Status.pm b/Master/tlpkg/tlperl/site/lib/HTTP/Status.pm
index 8cf997464fa..b7cf8fc1f98 100644
--- a/Master/tlpkg/tlperl/site/lib/HTTP/Status.pm
+++ b/Master/tlpkg/tlperl/site/lib/HTTP/Status.pm
@@ -3,7 +3,7 @@ package HTTP::Status;
use strict;
use warnings;
-our $VERSION = '6.18';
+our $VERSION = '6.22';
require 5.002; # because we use prototypes
@@ -162,7 +162,7 @@ HTTP::Status - HTTP Status code processing
=head1 VERSION
-version 6.18
+version 6.22
=head1 SYNOPSIS
diff --git a/Master/tlpkg/tlperl/site/lib/LWP.pm b/Master/tlpkg/tlperl/site/lib/LWP.pm
index 12bf7a95f81..ddb36fef3de 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP.pm
@@ -1,6 +1,6 @@
package LWP;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
require LWP::UserAgent; # this should load everything you need
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Authen/Basic.pm b/Master/tlpkg/tlperl/site/lib/LWP/Authen/Basic.pm
index d33e4af2e40..513475f1a3c 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Authen/Basic.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Authen/Basic.pm
@@ -2,7 +2,7 @@ package LWP::Authen::Basic;
use strict;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
require MIME::Base64;
@@ -11,6 +11,10 @@ sub auth_header {
return "Basic " . MIME::Base64::encode("$user:$pass", "");
}
+sub _reauth_requested {
+ return 0;
+}
+
sub authenticate
{
my($class, $ua, $proxy, $auth_param, $response,
@@ -37,9 +41,15 @@ sub authenticate
});
$h->{auth_param} = $auth_param;
- if (!$proxy && !$request->header($auth_header) && $ua->credentials($host_port, $realm)) {
- # we can make sure this handler applies and retry
- add_path($h, $url->path);
+ my $reauth_requested
+ = $class->_reauth_requested($auth_param, $ua, $request, $auth_header);
+ if ( !$proxy
+ && (!$request->header($auth_header) || $reauth_requested)
+ && $ua->credentials($host_port, $realm))
+ {
+ # we can make sure this handler applies and retry
+ add_path($h, $url->path)
+ unless $reauth_requested; # Do not clobber up path list for retries
return $ua->request($request->clone, $arg, $size, $response);
}
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Authen/Digest.pm b/Master/tlpkg/tlperl/site/lib/LWP/Authen/Digest.pm
index 2e11ac638b9..5ed025182f6 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Authen/Digest.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Authen/Digest.pm
@@ -3,10 +3,23 @@ package LWP::Authen::Digest;
use strict;
use base 'LWP::Authen::Basic';
-our $VERSION = '6.37';
+our $VERSION = '6.43';
require Digest::MD5;
+sub _reauth_requested {
+ my ($class, $auth_param, $ua, $request, $auth_header) = @_;
+ my $ret = defined($$auth_param{stale}) && lc($$auth_param{stale}) eq 'true';
+ if ($ret) {
+ my $hdr = $request->header($auth_header);
+ $hdr =~ tr/,/;/; # "," is used to separate auth-params!!
+ ($hdr) = HTTP::Headers::Util::split_header_words($hdr);
+ my $nonce = {@$hdr}->{nonce};
+ delete $$ua{authen_md5_nonce_count}{$nonce};
+ }
+ return $ret;
+}
+
sub auth_header {
my($class, $user, $pass, $request, $ua, $h) = @_;
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Authen/Ntlm.pm b/Master/tlpkg/tlperl/site/lib/LWP/Authen/Ntlm.pm
index b4eaad1eaa9..ebe07e2c1af 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Authen/Ntlm.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Authen/Ntlm.pm
@@ -2,7 +2,7 @@ package LWP::Authen::Ntlm;
use strict;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
use Authen::NTLM "1.02";
use MIME::Base64 "2.12";
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/ConnCache.pm b/Master/tlpkg/tlperl/site/lib/LWP/ConnCache.pm
index d4cfc66e266..240eacf0910 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/ConnCache.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/ConnCache.pm
@@ -2,7 +2,7 @@ package LWP::ConnCache;
use strict;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
our $DEBUG;
sub new {
@@ -201,7 +201,7 @@ The following basic methods are provided:
This method constructs a new L<LWP::ConnCache> object. The only
option currently accepted is C<total_capacity>. If specified it
-initialize the L<LWP::ConnCache/total_capacity> option. It defaults to C<1>.
+initializes the L<LWP::ConnCache/total_capacity> option. It defaults to C<1>.
=head2 total_capacity
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Debug.pm b/Master/tlpkg/tlperl/site/lib/LWP/Debug.pm
index c93a80ade30..7f05c433575 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Debug.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Debug.pm
@@ -1,6 +1,6 @@
package LWP::Debug; # legacy
-our $VERSION = '6.37';
+our $VERSION = '6.43';
require Exporter;
our @ISA = qw(Exporter);
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Debug/TraceHTTP.pm b/Master/tlpkg/tlperl/site/lib/LWP/Debug/TraceHTTP.pm
index 0644644616c..febd627e0b6 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Debug/TraceHTTP.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Debug/TraceHTTP.pm
@@ -11,7 +11,7 @@ package LWP::Debug::TraceHTTP;
use strict;
use base 'LWP::Protocol::http';
-our $VERSION = '6.37';
+our $VERSION = '6.43';
package # hide from PAUSE
LWP::Debug::TraceHTTP::Socket;
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/DebugFile.pm b/Master/tlpkg/tlperl/site/lib/LWP/DebugFile.pm
index f35cdf3426d..8a931ce4b15 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/DebugFile.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/DebugFile.pm
@@ -1,6 +1,6 @@
package LWP::DebugFile;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
# legacy stub
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/MediaTypes.pm b/Master/tlpkg/tlperl/site/lib/LWP/MediaTypes.pm
index 8c2a8aee334..22d00e3391b 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/MediaTypes.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/MediaTypes.pm
@@ -4,9 +4,11 @@ require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(guess_media_type media_suffix);
@EXPORT_OK = qw(add_type add_encoding read_media_types);
-$VERSION = "6.02";
+our $VERSION = '6.04';
use strict;
+use Scalar::Util qw(blessed);
+use Carp qw(croak);
# note: These hashes will also be filled with the entries found in
# the 'media.types' file.
@@ -47,10 +49,17 @@ sub guess_media_type
return undef unless defined $file;
my $fullname;
- if (ref($file)) {
- # assume URI object
- $file = $file->path;
- #XXX should handle non http:, file: or ftp: URIs differently
+ if (ref $file) {
+ croak("Unable to determine filetype on unblessed refs") unless blessed($file);
+ if ($file->can('path')) {
+ $file = $file->path;
+ }
+ elsif ($file->can('filename')) {
+ $fullname = $file->filename;
+ }
+ else {
+ $fullname = "" . $file;
+ }
}
else {
$fullname = $file; # enable peek at actual file
@@ -124,7 +133,7 @@ sub media_suffix {
}
-sub file_exts
+sub file_exts
{
require File::Basename;
my @parts = reverse split(/\./, File::Basename::basename($_[0]));
@@ -133,7 +142,7 @@ sub file_exts
}
-sub add_type
+sub add_type
{
my($type, @exts) = @_;
for my $ext (@exts) {
@@ -154,7 +163,7 @@ sub add_encoding
}
-sub read_media_types
+sub read_media_types
{
my(@files) = @_;
@@ -214,9 +223,12 @@ The following functions are exported by default:
=item guess_media_type( $uri )
-=item guess_media_type( $filename_or_uri, $header_to_modify )
+=item guess_media_type( $filename_or_object, $header_to_modify )
-This function tries to guess media type and encoding for a file or a URI.
+This function tries to guess media type and encoding for a file or objects that
+support the a C<path> or C<filename> method, eg, L<URI> or L<File::Temp> objects.
+When an object does not support either method, it will be stringified to
+determine the filename.
It returns the content type, which is a string like C<"text/html">.
In array context it also returns any content encodings applied (in the
order used to encode the file). You can pass a URI object
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/MemberMixin.pm b/Master/tlpkg/tlperl/site/lib/LWP/MemberMixin.pm
index 4ed9053cbc2..f32d27df447 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/MemberMixin.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/MemberMixin.pm
@@ -1,6 +1,6 @@
package LWP::MemberMixin;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
sub _elem {
my $self = shift;
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Protocol.pm b/Master/tlpkg/tlperl/site/lib/LWP/Protocol.pm
index f5966ab1c16..d1f03f133bf 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Protocol.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Protocol.pm
@@ -2,7 +2,7 @@ package LWP::Protocol;
use base 'LWP::MemberMixin';
-our $VERSION = '6.37';
+our $VERSION = '6.43';
use strict;
use Carp ();
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/cpan.pm b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/cpan.pm
index 1f6bd0d91b9..93f1c8a2452 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/cpan.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/cpan.pm
@@ -4,7 +4,7 @@ use strict;
use base qw(LWP::Protocol);
-our $VERSION = '6.37';
+our $VERSION = '6.43';
require URI;
require HTTP::Status;
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/data.pm b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/data.pm
index 8460f05be9f..fdbdb2fe93d 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/data.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/data.pm
@@ -4,7 +4,7 @@ package LWP::Protocol::data;
use strict;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
require HTTP::Response;
require HTTP::Status;
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/file.pm b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/file.pm
index 01c14eeafa7..90c1c1b07cf 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/file.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/file.pm
@@ -4,7 +4,7 @@ use base qw(LWP::Protocol);
use strict;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
require LWP::MediaTypes;
require HTTP::Request;
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/ftp.pm b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/ftp.pm
index d45a877f593..c6d75294a99 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/ftp.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/ftp.pm
@@ -5,7 +5,7 @@ package LWP::Protocol::ftp;
use base qw(LWP::Protocol);
use strict;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
use Carp ();
use HTTP::Status ();
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/gopher.pm b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/gopher.pm
index 6fd6ff710ba..3c3f8c96f61 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/gopher.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/gopher.pm
@@ -9,7 +9,7 @@ package LWP::Protocol::gopher;
use strict;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
require HTTP::Response;
require HTTP::Status;
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/http.pm b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/http.pm
index ec53e23d95d..052b773d711 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/http.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/http.pm
@@ -2,7 +2,7 @@ package LWP::Protocol::http;
use strict;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
require HTTP::Response;
require HTTP::Status;
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/loopback.pm b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/loopback.pm
index b7645deee66..a00a53e7103 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/loopback.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/loopback.pm
@@ -2,7 +2,7 @@ package LWP::Protocol::loopback;
use strict;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
require HTTP::Response;
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/mailto.pm b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/mailto.pm
index d970edafbe6..15a4d40d9da 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/mailto.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/mailto.pm
@@ -11,7 +11,7 @@ require HTTP::Status;
use Carp;
use strict;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
use base qw(LWP::Protocol);
our $SENDMAIL;
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/nntp.pm b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/nntp.pm
index 3cbde3f4e0a..c667c342041 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/nntp.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/nntp.pm
@@ -4,7 +4,7 @@ package LWP::Protocol::nntp;
use base qw(LWP::Protocol);
-our $VERSION = '6.37';
+our $VERSION = '6.43';
require HTTP::Response;
require HTTP::Status;
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/nogo.pm b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/nogo.pm
index 32f09579bff..5a9fe059078 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Protocol/nogo.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Protocol/nogo.pm
@@ -7,7 +7,7 @@ package LWP::Protocol::nogo;
use strict;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
require HTTP::Response;
require HTTP::Status;
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/RobotUA.pm b/Master/tlpkg/tlperl/site/lib/LWP/RobotUA.pm
index a418fe32fe5..9fe93324a04 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/RobotUA.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/RobotUA.pm
@@ -2,7 +2,7 @@ package LWP::RobotUA;
use base qw(LWP::UserAgent);
-our $VERSION = '6.37';
+our $VERSION = '6.43';
require WWW::RobotRules;
require HTTP::Request;
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/Simple.pm b/Master/tlpkg/tlperl/site/lib/LWP/Simple.pm
index f1b91b13ca6..cf4b4b0c566 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/Simple.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/Simple.pm
@@ -2,7 +2,7 @@ package LWP::Simple;
use strict;
-our $VERSION = '6.37';
+our $VERSION = '6.43';
require Exporter;
diff --git a/Master/tlpkg/tlperl/site/lib/LWP/UserAgent.pm b/Master/tlpkg/tlperl/site/lib/LWP/UserAgent.pm
index 58f09e0b2a9..668d1c04886 100644
--- a/Master/tlpkg/tlperl/site/lib/LWP/UserAgent.pm
+++ b/Master/tlpkg/tlperl/site/lib/LWP/UserAgent.pm
@@ -15,7 +15,7 @@ use LWP::Protocol ();
use Scalar::Util qw(blessed);
use Try::Tiny qw(try catch);
-our $VERSION = '6.37';
+our $VERSION = '6.43';
sub new
{
@@ -420,8 +420,11 @@ sub request {
"Unsupported authentication scheme '$scheme'");
next CHALLENGE;
}
- return $class->authenticate($self, $proxy, $challenge, $response,
+ my $re = $class->authenticate($self, $proxy, $challenge, $response,
$request, $arg, $size);
+
+ next CHALLENGE if $re->code == HTTP::Status::RC_UNAUTHORIZED;
+ return $re;
}
return $response;
}
@@ -489,6 +492,21 @@ sub head {
return $self->request( HTTP::Request::Common::HEAD( @parameters ), @suff );
}
+sub patch {
+ require HTTP::Request::Common;
+ my($self, @parameters) = @_;
+ my @suff = $self->_process_colonic_headers(\@parameters, (ref($parameters[1]) ? 2 : 1));
+
+ # this work-around is in place as HTTP::Request::Common
+ # did not implement a patch convenience method until
+ # version 6.12. Once we can bump the prereq to at least
+ # that version, we can use ::PATCH instead of this hack
+ my $req = HTTP::Request::Common::PUT(@parameters);
+ $req->method('PATCH');
+
+ $self->_maybe_copy_default_content_type($req, @parameters);
+ return $self->request($req, @suff);
+}
sub put {
require HTTP::Request::Common;
@@ -966,6 +984,8 @@ sub mirror
{
my($self, $url, $file) = @_;
+ die "Local file name is missing" unless defined $file && length $file;
+
my $request = HTTP::Request->new('GET', $url);
# If the file exists, add a cache-related header
@@ -979,10 +999,10 @@ sub mirror
my $response = $self->request($request, $tmpfile);
if ( $response->header('X-Died') ) {
- die $response->header('X-Died');
+ die $response->header('X-Died');
}
- # Only fetching a fresh copy of the would be considered success.
+ # Only fetching a fresh copy of the file would be considered success.
# If the file was not modified, "304" would returned, which
# is considered by HTTP::Status to be a "redirect", /not/ "success"
if ( $response->is_success ) {
@@ -1017,7 +1037,7 @@ sub mirror
}
# The local copy is fresh enough, so just delete the temp file
else {
- unlink($tmpfile);
+ unlink($tmpfile);
}
return $response;
}
@@ -1133,22 +1153,48 @@ LWP::UserAgent - Web user agent class
=head1 SYNOPSIS
- use strict;
- use warnings;
- use LWP::UserAgent ();
+ use strict;
+ use warnings;
+
+ use LWP::UserAgent ();
- my $ua = LWP::UserAgent->new;
- $ua->timeout(10);
- $ua->env_proxy;
+ my $ua = LWP::UserAgent->new(timeout => 10);
+ $ua->env_proxy;
- my $response = $ua->get('http://search.cpan.org/');
+ my $response = $ua->get('http://example.com');
- if ($response->is_success) {
- print $response->decoded_content; # or whatever
- }
- else {
- die $response->status_line;
- }
+ if ($response->is_success) {
+ print $response->decoded_content;
+ }
+ else {
+ die $response->status_line;
+ }
+
+Extra layers of security (note the C<cookie_jar> and C<protocols_allowed>):
+
+ use strict;
+ use warnings;
+
+ use HTTP::CookieJar::LWP ();
+ use LWP::UserAgent ();
+
+ my $jar = HTTP::CookieJar::LWP->new;
+ my $ua = LWP::UserAgent->new(
+ cookie_jar => $jar,
+ protocols_allowed => ['http', 'https'],
+ timeout => 10,
+ );
+
+ $ua->env_proxy;
+
+ my $response = $ua->get('http://example.com');
+
+ if ($response->is_success) {
+ print $response->decoded_content;
+ }
+ else {
+ die $response->status_line;
+ }
=head1 DESCRIPTION
@@ -1221,7 +1267,7 @@ is passed in with a true value, then proxy settings are read from environment
variables (see L<LWP::UserAgent/env_proxy>). If C<env_proxy> isn't provided, the
C<PERL_LWP_ENV_PROXY> environment variable controls if
L<LWP::UserAgent/env_proxy> is called during initialization. If the
-C<keep_alive> option is passed in, then a C<LWP::ConnCache> is set up (see
+C<keep_alive> option value is defined and non-zero, then an C<LWP::ConnCache> is set up (see
L<LWP::UserAgent/conn_cache>). The C<keep_alive> value is passed on as the
C<total_capacity> for the connection cache.
@@ -1276,7 +1322,16 @@ the cookie jar object must implement the C<extract_cookies($response)> and
C<add_cookie_header($request)> methods. These methods will then be
invoked by the user agent as requests are sent and responses are
received. Normally this will be a L<HTTP::Cookies> object or some
-subclass.
+subclass. You are, however, encouraged to use L<HTTP::CookieJar::LWP>
+instead. See L</"BEST PRACTICES"> for more information.
+
+ use HTTP::CookieJar::LWP ();
+
+ my $jar = HTTP::CookieJar::LWP->new;
+ my $ua = LWP::UserAgent->new( cookie_jar => $jar );
+
+ # or after object creation
+ $ua->cookie_jar( $cookie_jar );
The default is to have no cookie jar, i.e. never automatically add
C<Cookie> headers to the requests.
@@ -1592,34 +1647,27 @@ the active handlers:
Add handler to be invoked in the given processing phase. For how to
specify C<%matchspec> see L<HTTP::Config/"Matching">.
-The possible values C<$phase> and the corresponding callback signatures are:
+The possible values C<$phase> and the corresponding callback signatures are as
+follows. Note that the handlers are documented in the order in which they will
+be run, which is:
-=over
+ request_preprepare
+ request_prepare
+ request_send
+ response_header
+ response_data
+ response_done
+ response_redirect
-=item response_data => sub { my($response, $ua, $handler, $data) = @_; ... }
-
-This handler is called for each chunk of data received for the
-response. The handler might croak to abort the request.
-
-This handler needs to return a TRUE value to be called again for
-subsequent chunks for the same request.
-
-=item response_done => sub { my($response, $ua, $handler) = @_; ... }
-
-The handler is called after the response has been fully received, but
-before any redirect handling is attempted. The handler can be used to
-extract information or modify the response.
-
-=item response_header => sub { my($response, $ua, $handler) = @_; ... }
+=over
-This handler is called right after the response headers have been
-received, but before any content data. The handler might set up
-handlers for data and might croak to abort the request.
+=item request_preprepare => sub { my($request, $ua, $handler) = @_; ... }
-The handler might set the C<< $response->{default_add_content} >> value to
-control if any received data should be added to the response object
-directly. This will initially be false if the C<< $ua->request() >> method
-was called with a C<$content_file> or C<$content_cb argument>; otherwise true.
+The handler is called before the C<request_prepare> and other standard
+initialization of the request. This can be used to set up headers
+and attributes that the C<request_prepare> handler depends on. Proxy
+initialization should take place here; but in general don't register
+handlers for this phase.
=item request_prepare => sub { my($request, $ua, $handler) = @_; ... }
@@ -1634,14 +1682,6 @@ The return value from the callback is ignored. If an exception is
raised it will abort the request and make the request method return a
"400 Bad request" response.
-=item request_preprepare => sub { my($request, $ua, $handler) = @_; ... }
-
-The handler is called before the C<request_prepare> and other standard
-initialization of the request. This can be used to set up headers
-and attributes that the C<request_prepare> handler depends on. Proxy
-initialization should take place here; but in general don't register
-handlers for this phase.
-
=item request_send => sub { my($request, $ua, $handler) = @_; ... }
This handler gets a chance of handling requests before they're sent to the
@@ -1651,6 +1691,31 @@ wishes to terminate the processing; otherwise it should return nothing.
The C<response_header> and C<response_data> handlers will not be
invoked for this response, but the C<response_done> will be.
+=item response_header => sub { my($response, $ua, $handler) = @_; ... }
+
+This handler is called right after the response headers have been
+received, but before any content data. The handler might set up
+handlers for data and might croak to abort the request.
+
+The handler might set the C<< $response->{default_add_content} >> value to
+control if any received data should be added to the response object
+directly. This will initially be false if the C<< $ua->request() >> method
+was called with a C<$content_file> or C<$content_cb argument>; otherwise true.
+
+=item response_data => sub { my($response, $ua, $handler, $data) = @_; ... }
+
+This handler is called for each chunk of data received for the
+response. The handler might croak to abort the request.
+
+This handler needs to return a TRUE value to be called again for
+subsequent chunks for the same request.
+
+=item response_done => sub { my($response, $ua, $handler) = @_; ... }
+
+The handler is called after the response has been fully received, but
+before any redirect handling is attempted. The handler can be used to
+extract information or modify the response.
+
=item response_redirect => sub { my($response, $ua, $handler) = @_; ... }
The handler is called in C<< $ua->request >> after C<response_done>. If the
@@ -1687,7 +1752,7 @@ the given processing phase.
$ua->remove_handler( undef, %matchspec );
$ua->remove_handler( $phase, %matchspec );
- $ua->remove_handlers(); # REMOVE ALL HANDLERS IN ALL PHASES
+ $ua->remove_handler(); # REMOVE ALL HANDLERS IN ALL PHASES
Remove handlers that match the given C<%matchspec>. If C<$phase> is not
provided, remove handlers from all phases.
@@ -1751,9 +1816,9 @@ Fields names that start with ":" are special. These will not
initialize headers of the request but will determine how the response
content is treated. The following special field names are recognized:
- :content_file => $filename
- :content_cb => \&callback
- :read_size_hint => $bytes
+ ':content_file' => $filename
+ ':content_cb' => \&callback
+ ':read_size_hint' => $bytes
If a $filename is provided with the C<:content_file> option, then the
response content will be saved here instead of in the response
@@ -1827,6 +1892,33 @@ forced to match that of the server.
The return value is an L<HTTP::Response> object.
+=head2 patch
+ # Any version of HTTP::Message works with this form:
+ my $res = $ua->patch( $url, $field_name => $value, Content => $content );
+
+ # Using hash or array references requires HTTP::Message >= 6.12
+ use HTTP::Request 6.12;
+ my $res = $ua->patch( $url, \%form );
+ my $res = $ua->patch( $url, \@form );
+ my $res = $ua->patch( $url, \%form, $field_name => $value, ... );
+ my $res = $ua->patch( $url, $field_name => $value, Content => \%form );
+ my $res = $ua->patch( $url, $field_name => $value, Content => \@form );
+
+This method will dispatch a C<PATCH> request on the given URL, with
+C<%form> or C<@form> providing the key/value pairs for the fill-in form
+content. Additional headers and content options are the same as for
+the L<LWP::UserAgent/get> method.
+
+CAVEAT:
+
+This method can only accept content that is in key-value pairs when using
+L<HTTP::Request::Common> prior to version C<6.12>. Any use of hash or array
+references will result in an error prior to version C<6.12>.
+
+This method will use the C<PATCH> function from L<HTTP::Request::Common>
+to build the request. See L<HTTP::Request::Common> for a details on
+how to pass form content and other advanced features.
+
=head2 post
my $res = $ua->post( $url, \%form );
@@ -1988,6 +2080,47 @@ is in the object's C<requests_redirectable> list,
false if the proposed redirection is to a C<file://...>
URL, and true otherwise.
+=head1 BEST PRACTICES
+
+The default settings can get you up and running quickly, but there are settings
+you can change in order to make your life easier.
+
+=head2 Handling Cookies
+
+You are encouraged to install L<Mozilla::PublicSuffix> and use
+L<HTTP::CookieJar::LWP> as your cookie jar. L<HTTP::CookieJar::LWP> provides a
+better security model matching that of current Web browsers when
+L<Mozilla::PublicSuffix> is installed.
+
+ use HTTP::CookieJar::LWP ();
+
+ my $jar = HTTP::CookieJar::LWP->new;
+ my $ua = LWP::UserAgent->new( cookie_jar => $jar );
+
+See L</"cookie_jar"> for more information.
+
+=head2 Managing Protocols
+
+C<protocols_allowed> gives you the ability to whitelist the protocols you're
+willing to allow.
+
+ my $ua = LWP::UserAgent->new(
+ protocols_allowed => [ 'http', 'https' ]
+ );
+
+This will prevent you from inadvertently following URLs like
+C<file:///etc/passwd>. See L</"protocols_allowed">.
+
+C<protocols_forbidden> gives you the ability to blacklist the protocols you're
+unwilling to allow.
+
+ my $ua = LWP::UserAgent->new(
+ protocols_forbidden => [ 'file', 'mailto', 'ssh', ]
+ );
+
+This can also prevent you from inadvertently following URLs like
+C<file:///etc/passwd>. See L</protocols_forbidden>.
+
=head1 SEE ALSO
See L<LWP> for a complete overview of libwww-perl5. See L<lwpcook>
diff --git a/Master/tlpkg/tlperl/site/lib/Net/HTTP.pm b/Master/tlpkg/tlperl/site/lib/Net/HTTP.pm
index fecfc384465..e36200f43ee 100644
--- a/Master/tlpkg/tlperl/site/lib/Net/HTTP.pm
+++ b/Master/tlpkg/tlperl/site/lib/Net/HTTP.pm
@@ -1,5 +1,5 @@
package Net::HTTP;
-our $VERSION = '6.18';
+our $VERSION = '6.19';
use strict;
use warnings;
@@ -50,7 +50,7 @@ Net::HTTP - Low-level HTTP connection (client)
=head1 VERSION
-version 6.18
+version 6.19
=head1 SYNOPSIS
diff --git a/Master/tlpkg/tlperl/site/lib/Net/HTTP/Methods.pm b/Master/tlpkg/tlperl/site/lib/Net/HTTP/Methods.pm
index c682e3fc257..b423e540dc4 100644
--- a/Master/tlpkg/tlperl/site/lib/Net/HTTP/Methods.pm
+++ b/Master/tlpkg/tlperl/site/lib/Net/HTTP/Methods.pm
@@ -1,5 +1,5 @@
package Net::HTTP::Methods;
-our $VERSION = '6.18';
+our $VERSION = '6.19';
use strict;
use warnings;
use URI;
@@ -649,7 +649,7 @@ Net::HTTP::Methods - Methods shared by Net::HTTP and Net::HTTPS
=head1 VERSION
-version 6.18
+version 6.19
=head1 AUTHOR
diff --git a/Master/tlpkg/tlperl/site/lib/Net/HTTP/NB.pm b/Master/tlpkg/tlperl/site/lib/Net/HTTP/NB.pm
index ff705634096..a8eaf1bf394 100644
--- a/Master/tlpkg/tlperl/site/lib/Net/HTTP/NB.pm
+++ b/Master/tlpkg/tlperl/site/lib/Net/HTTP/NB.pm
@@ -1,5 +1,5 @@
package Net::HTTP::NB;
-our $VERSION = '6.18';
+our $VERSION = '6.19';
use strict;
use warnings;
@@ -60,7 +60,7 @@ Net::HTTP::NB - Non-blocking HTTP client
=head1 VERSION
-version 6.18
+version 6.19
=head1 SYNOPSIS
diff --git a/Master/tlpkg/tlperl/site/lib/Net/HTTPS.pm b/Master/tlpkg/tlperl/site/lib/Net/HTTPS.pm
index 2ec04b6e0f8..2f88833fc16 100644
--- a/Master/tlpkg/tlperl/site/lib/Net/HTTPS.pm
+++ b/Master/tlpkg/tlperl/site/lib/Net/HTTPS.pm
@@ -1,5 +1,5 @@
package Net::HTTPS;
-our $VERSION = '6.18';
+our $VERSION = '6.19';
use strict;
use warnings;
@@ -90,7 +90,7 @@ Net::HTTPS - Low-level HTTP over SSL/TLS connection (client)
=head1 VERSION
-version 6.18
+version 6.19
=head1 DESCRIPTION
diff --git a/Master/tlpkg/tlperl/site/lib/OLE.pm b/Master/tlpkg/tlperl/site/lib/OLE.pm
deleted file mode 100644
index 234f6986ab3..00000000000
--- a/Master/tlpkg/tlperl/site/lib/OLE.pm
+++ /dev/null
@@ -1,177 +0,0 @@
-# Compatibility layer for applications using the old toplevel OLE.pm.
-# New code should use Win32::OLE
-
-# This file is based on ../lib/OLE.pm from ActiveState build 315.
-
-# Compatibility notes:
-# - "GetObject" -> "GetActiveObject"
-# - "keys %$collection" -> "Win32::OLE::Enum->All($collection)"
-# or "in $Collection"
-# - "unnamed" default method retries
-
-########################################################################
-# package Win32;
-########################################################################
-
-*Win32::OLELastError = sub { return OLE->LastError() };
-
-
-########################################################################
-package OLE::Variant;
-########################################################################
-
-use Win32::OLE qw(CP_ACP);
-use Win32::OLE::Variant;
-
-use strict;
-use vars qw($AUTOLOAD @ISA $LCID $CP $Warn $LastError $_NewEnum $_Unique);
-@ISA = qw(Win32::OLE::Variant);
-
-$Warn = 0;
-$LCID = 2 << 10; # LOCALE_SYSTEM_DEFAULT
-$CP = CP_ACP;
-$_NewEnum = 0;
-$_Unique = 0;
-
-sub new {
- my $self = shift;
- my $variant = $self->SUPER::new(@_);
- $OLE::LastError = $Win32::OLE->LastError unless defined $variant;
- return $variant;
-}
-
-
-########################################################################
-package OLE::Tie;
-########################################################################
-use strict;
-use vars qw(@ISA);
-@ISA = qw(Win32::OLE::Tie);
-
-# !!! It is VERY important that Win32::OLE::Tie::DESTROY gets called. !!!
-# If you subclass DESTROY, don't forget to call $self->SUPER::DESTROY.
-# Otherwise the OLE interfaces will not be released until process termination!
-
-# Retry default method if property doesn't exist
-sub FETCH {
- my ($self,$key) = @_;
- return $self->SUPER::Fetch($key, 1);
-}
-
-sub STORE {
- my ($self,$key,$value) = @_;
- $self->SUPER::Store($key, $value, 1);
-}
-
-# Enumerate collection members, not object properties
-*FIRSTKEY = *Win32::OLE::Tie::FIRSTENUM;
-*NEXTKEY = *Win32::OLE::Tie::NEXTENUM;
-
-
-########################################################################
-package OLE;
-########################################################################
-use Win32::OLE qw(CP_ACP);
-
-# Use OleInitialize() instead of CoInitializeEx:
-Win32::OLE->Initialize(Win32::OLE::COINIT_OLEINITIALIZE);
-
-use strict;
-
-# Disable overload; unfortunately "no overload" doesn't do it :-(
-# Overloading is no longer enabled by default in Win32::OLE
-#use overload '""' => sub {overload::StrVal($_[0])},
-# '0+' => sub {overload::StrVal($_[0])};
-
-use vars qw($AUTOLOAD @ISA $LCID $CP $Warn $LastError $Tie);
-@ISA = qw(Win32::OLE);
-
-$Warn = 0;
-$LCID = 2 << 10; # LOCALE_SYSTEM_DEFAULT
-$CP = CP_ACP;
-$Tie = 'OLE::Tie';
-
-sub new {
- my $class = shift;
- $class = shift if $class eq 'OLE';
- return OLE->SUPER::new($class);
-}
-
-sub copy {
- my $class = shift;
- $class = shift if $class eq 'OLE';
- return OLE->SUPER::GetActiveObject($class);
-}
-
-sub AUTOLOAD {
- my $self = shift;
- my $retval;
- $AUTOLOAD =~ s/.*:://o;
-
- Carp::croak("Cannot autoload class method \"$AUTOLOAD\"")
- unless ref($self) && UNIVERSAL::isa($self,'OLE');
-
- local $^H = 0; # !hack alert!
- unless (defined $self->Dispatch($AUTOLOAD, $retval, @_)) {
- # Retry default method
- $self->Dispatch(undef, $retval, $AUTOLOAD, @_);
- }
- return $retval;
-}
-
-*CreateObject = \&new;
-*GetObject = \&copy;
-
-# Automation data types.
-
-sub VT_EMPTY {0;}
-sub VT_NULL {1;}
-sub VT_I2 {2;}
-sub VT_I4 {3;}
-sub VT_R4 {4;}
-sub VT_R8 {5;}
-sub VT_CY {6;}
-sub VT_DATE {7;}
-sub VT_BSTR {8;}
-sub VT_DISPATCH {9;}
-sub VT_ERROR {10;}
-sub VT_BOOL {11;}
-sub VT_VARIANT {12;}
-sub VT_UNKNOWN {13;}
-sub VT_I1 {16;}
-sub VT_UI1 {17;}
-sub VT_UI2 {18;}
-sub VT_UI4 {19;}
-sub VT_I8 {20;}
-sub VT_UI8 {21;}
-sub VT_INT {22;}
-sub VT_UINT {23;}
-sub VT_VOID {24;}
-sub VT_HRESULT {25;}
-sub VT_PTR {26;}
-sub VT_SAFEARRAY {27;}
-sub VT_CARRAY {28;}
-sub VT_USERDEFINED {29;}
-sub VT_LPSTR {30;}
-sub VT_LPWSTR {31;}
-sub VT_FILETIME {64;}
-sub VT_BLOB {65;}
-sub VT_STREAM {66;}
-sub VT_STORAGE {67;}
-sub VT_STREAMED_OBJECT {68;}
-sub VT_STORED_OBJECT {69;}
-sub VT_BLOB_OBJECT {70;}
-sub VT_CF {71;}
-sub VT_CLSID {72;}
-
-sub TKIND_ENUM {0;}
-sub TKIND_RECORD {1;}
-sub TKIND_MODULE {2;}
-sub TKIND_INTERFACE {3;}
-sub TKIND_DISPATCH {4;}
-sub TKIND_COCLASS {5;}
-sub TKIND_ALIAS {6;}
-sub TKIND_UNION {7;}
-sub TKIND_MAX {8;}
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Test/Needs.pm b/Master/tlpkg/tlperl/site/lib/Test/Needs.pm
index f3db264d31b..3460128e540 100755
--- a/Master/tlpkg/tlperl/site/lib/Test/Needs.pm
+++ b/Master/tlpkg/tlperl/site/lib/Test/Needs.pm
@@ -2,7 +2,7 @@ package Test::Needs;
use strict;
use warnings;
no warnings 'once';
-our $VERSION = '0.002005';
+our $VERSION = '0.002006';
$VERSION =~ tr/_//d;
BEGIN {
@@ -14,6 +14,8 @@ BEGIN {
? sub(){1} : sub(){0};
}
+our @EXPORT = qw(test_needs);
+
sub _try_require {
local %^H
if _WORK_AROUND_HINT_LEAKAGE;
@@ -35,70 +37,54 @@ sub _try_require {
!0;
}
+sub _croak {
+ my $message = join '', @_;
+ my $i = 1;
+ while (my ($p, $f, $l) = caller($i++)) {
+ next
+ if $p->isa(__PACKAGE__);
+ die "$message at $f line $l.\n";
+ }
+ die $message;
+}
+
+sub _try_version {
+ my ($module, $version) = @_;
+ local $@;
+ !!eval { $module->VERSION($version); 1 };
+}
+
+sub _numify_version {
+ for ($_[0]) {
+ return
+ !$_ ? 0
+ : /^[0-9]+\.[0-9]+$/ ? sprintf('%.6f', $_)
+ : /^v?([0-9]+(?:\.[0-9]+)+)$/
+ ? sprintf('%d.%03d%03d', ((split /\./, $1), 0, 0)[0..2])
+ : /^(\x05)(.*)$/s
+ ? sprintf('%d.%03d%03d', map ord, $1, split //, $2)
+ : _croak qq{version "$_" does not look like a number};
+ }
+}
+
sub _find_missing {
my @bad = map {
my ($module, $version) = @$_;
- if ($module eq 'perl') {
- $version
- = !$version ? 0
- : $version =~ /^[0-9]+\.[0-9]+$/ ? sprintf('%.6f', $version)
- : $version =~ /^v?([0-9]+(?:\.[0-9]+)+)$/ ? do {
- my @p = split /\./, $1;
- push @p, 0
- until @p >= 3;
- sprintf '%d.%03d%03d', @p;
- }
- : $version =~ /^\x05..?$/s ? do {
- my @p = map ord, split //, $version;
- push @p, 0
- until @p >= 3;
- sprintf '%d.%03d%03d', @p;
- }
- : do {
- use warnings FATAL => 'numeric';
- no warnings 'void';
- eval { 0 + $version; 1 } ? $version
- : die sprintf qq{version "%s" for perl does not look like a number at %s line %s.\n},
- $version, (caller( 1 + ($Test::Builder::Level||0) ))[1,2];
- };
- if ("$]" < $version) {
- sprintf "perl %s (have %.6f)", $version, $];
- }
- else {
- ();
- }
- }
- elsif ($module =~ /^\d|[^\w:]|:::|[^:]:[^:]|^:|:$/) {
- die sprintf qq{"%s" does not look like a module name at %s line %s.\n},
- $module, (caller( 1 + ($Test::Builder::Level||0) ))[1,2];
- die
- }
- elsif (_try_require($module)) {
- local $@;
- if (defined $version && !eval { $module->VERSION($version); 1 }) {
- "$module $version (have ".$module->VERSION.')';
- }
- else {
- ();
- }
- }
- else {
- $version ? "$module $version" : $module;
+ $module eq 'perl' ? do {
+ $version = _numify_version($version);
+ "$]" < $version ? (sprintf "perl %s (have %.6f)", $version, $]) : ()
}
+ : $module =~ /^\d|[^\w:]|:::|[^:]:[^:]|^:|:$/
+ ? _croak sprintf qq{"%s" does not look like a module name}, $module
+ : _try_require($module) ? (
+ defined $version && !_try_version($module, $version)
+ ? "$module $version (have ".(defined $module->VERSION ? $module->VERSION : 'undef').')'
+ : ()
+ )
+ : $version ? "$module $version"
+ : $module;
}
- map {
- if (ref eq 'HASH') {
- my $arg = $_;
- map [ $_ => $arg->{$_} ], sort keys %$arg;
- }
- elsif (ref eq 'ARRAY') {
- my $arg = $_;
- map [ @{$arg}[$_*2,$_*2+1] ], 0 .. int($#$arg / 2);
- }
- else {
- [ $_ => undef ];
- }
- } @_;
+ _pairs(@_);
@bad ? "Need " . join(', ', @bad) : undef;
}
@@ -110,19 +96,41 @@ sub import {
test_needs(@_);
}
no strict 'refs';
- *{"${target}::test_needs"} = \&test_needs;
+ *{"${target}::$_"} = \&{"${class}::$_"}
+ for @{"${class}::EXPORT"};
}
sub test_needs {
my $missing = _find_missing(@_);
local $Test::Builder::Level = ($Test::Builder::Level||0) + 1;
- _fail_or_skip($missing, $ENV{RELEASE_TESTING})
- if $missing;
+ if ($missing) {
+ if ($ENV{RELEASE_TESTING}) {
+ _fail("$missing due to RELEASE_TESTING");
+ }
+ else {
+ _skip($missing);
+ }
+ }
+
}
sub _skip { _fail_or_skip($_[0], 0) }
sub _fail { _fail_or_skip($_[0], 1) }
+sub _pairs {
+ map +(
+ ref eq 'HASH' ? do {
+ my $arg = $_;
+ map [ $_ => $arg->{$_} ], sort keys %$arg;
+ }
+ : ref eq 'ARRAY' ? do {
+ my $arg = $_;
+ map [ @{$arg}[$_*2,$_*2+1] ], 0 .. int($#$arg / 2);
+ }
+ : [ $_ ]
+ ), @_;
+}
+
sub _fail_or_skip {
my ($message, $fail) = @_;
if ($INC{'Test2/API.pm'}) {
@@ -193,17 +201,20 @@ sub _fail_or_skip {
my $terminate_event;
sub _t2_terminate_event () {
+ return $terminate_event
+ if $terminate_event;
local $@;
- $terminate_event ||= eval q{
- $INC{'Test/Needs/Event/Terminate.pm'} = $INC{'Test/Needs.pm'};
+ my $file = __FILE__;
+ $terminate_event = eval <<"END_CODE" or die "$@";
package # hide
Test::Needs::Event::Terminate;
use Test2::Event ();
- our @ISA = qw(Test2::Event);
+ our \@ISA = qw(Test2::Event);
sub no_display { 1 }
sub terminate { 0 }
+ \$INC{'Test/Needs/Event/Terminate.pm'} = \$file;
__PACKAGE__;
- } or die "$@";
+END_CODE
}
1;
@@ -292,9 +303,19 @@ and broken modules.
Part of the L<Test2> ecosystem. Only supports running as a C<use> command to
skip an entire plan.
+=item L<Test2::Require::Perl>
+
+Part of the L<Test2> ecosystem. Only supports running as a C<use> command to
+skip an entire plan. Checks perl versions.
+
+=item L<Test::If>
+
+Acts as a C<use> statement. Only supports running as a C<use> command to skip
+an entire plan. Can skip based on subref results.
+
=back
-=head1 AUTHOR
+=head1 AUTHORS
haarg - Graham Knop (cpan:HAARG) <haarg@haarg.org>
@@ -302,13 +323,11 @@ haarg - Graham Knop (cpan:HAARG) <haarg@haarg.org>
None so far.
-=head1 COPYRIGHT
+=head1 COPYRIGHT AND LICENSE
-Copyright (c) 2016 the Test::Needs L</AUTHOR> and L</CONTRIBUTORS>
+Copyright (c) 2016 the Test::Needs L</AUTHORS> and L</CONTRIBUTORS>
as listed above.
-=head1 LICENSE
-
This library is free software and may be distributed under the same terms
as perl itself. See L<http://dev.perl.org/licenses/>.
diff --git a/Master/tlpkg/tlperl/site/lib/Time/Zone.pm b/Master/tlpkg/tlperl/site/lib/Time/Zone.pm
deleted file mode 100644
index 8a40f9158c8..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Time/Zone.pm
+++ /dev/null
@@ -1,291 +0,0 @@
-
-package Time::Zone;
-
-=head1 NAME
-
-Time::Zone -- miscellaneous timezone manipulations routines
-
-=head1 SYNOPSIS
-
- use Time::Zone;
- print tz2zone();
- print tz2zone($ENV{'TZ'});
- print tz2zone($ENV{'TZ'}, time());
- print tz2zone($ENV{'TZ'}, undef, $isdst);
- $offset = tz_local_offset();
- $offset = tz_offset($TZ);
-
-=head1 DESCRIPTION
-
-This is a collection of miscellaneous timezone manipulation routines.
-
-C<tz2zone()> parses the TZ environment variable and returns a timezone
-string suitable for inclusion in L<date(1)>-like output. It opionally takes
-a timezone string, a time, and a is-dst flag.
-
-C<tz_local_offset()> determins the offset from GMT time in seconds. It
-only does the calculation once.
-
-C<tz_offset()> determines the offset from GMT in seconds of a specified
-timezone.
-
-C<tz_name()> determines the name of the timezone based on its offset
-
-=head1 AUTHORS
-
-Graham Barr <gbarr@pobox.com>
-David Muir Sharnoff <muir@idiom.com>
-Paul Foley <paul@ascent.com>
-
-=cut
-
-require 5.002;
-
-require Exporter;
-use Carp;
-use strict;
-use vars qw(@ISA @EXPORT $VERSION @tz_local);
-
-@ISA = qw(Exporter);
-@EXPORT = qw(tz2zone tz_local_offset tz_offset tz_name);
-$VERSION = "2.24";
-
-# Parts stolen from code by Paul Foley <paul@ascent.com>
-
-sub tz2zone (;$$$)
-{
- my($TZ, $time, $isdst) = @_;
-
- use vars qw(%tzn_cache);
-
- $TZ = defined($ENV{'TZ'}) ? ( $ENV{'TZ'} ? $ENV{'TZ'} : 'GMT' ) : ''
- unless $TZ;
-
- # Hack to deal with 'PST8PDT' format of TZ
- # Note that this can't deal with all the esoteric forms, but it
- # does recognize the most common: [:]STDoff[DST[off][,rule]]
-
- if (! defined $isdst) {
- my $j;
- $time = time() unless $time;
- ($j, $j, $j, $j, $j, $j, $j, $j, $isdst) = localtime($time);
- }
-
- if (defined $tzn_cache{$TZ}->[$isdst]) {
- return $tzn_cache{$TZ}->[$isdst];
- }
-
- if ($TZ =~ /^
- ( [^:\d+\-,] {3,} )
- ( [+-] ?
- \d {1,2}
- ( : \d {1,2} ) {0,2}
- )
- ( [^\d+\-,] {3,} )?
- /x
- ) {
- my $dsttz = defined($4) ? $4 : $1;
- $TZ = $isdst ? $dsttz : $1;
- $tzn_cache{$TZ} = [ $1, $dsttz ];
- } else {
- $tzn_cache{$TZ} = [ $TZ, $TZ ];
- }
- return $TZ;
-}
-
-sub tz_local_offset (;$)
-{
- my ($time) = @_;
-
- $time = time() unless $time;
- my (@l) = localtime($time);
- my $isdst = $l[8];
-
- if (defined($tz_local[$isdst])) {
- return $tz_local[$isdst];
- }
-
- $tz_local[$isdst] = &calc_off($time);
-
- return $tz_local[$isdst];
-}
-
-sub calc_off
-{
- my ($time) = @_;
-
- my (@l) = localtime($time);
- my (@g) = gmtime($time);
-
- my $off;
-
- $off = $l[0] - $g[0]
- + ($l[1] - $g[1]) * 60
- + ($l[2] - $g[2]) * 3600;
-
- # subscript 7 is yday.
-
- if ($l[7] == $g[7]) {
- # done
- } elsif ($l[7] == $g[7] + 1) {
- $off += 86400;
- } elsif ($l[7] == $g[7] - 1) {
- $off -= 86400;
- } elsif ($l[7] < $g[7]) {
- # crossed over a year boundry!
- # localtime is beginning of year, gmt is end
- # therefore local is ahead
- $off += 86400;
- } else {
- $off -= 86400;
- }
-
- return $off;
-}
-
-# constants
-
-CONFIG: {
- use vars qw(%dstZone %zoneOff %dstZoneOff %Zone);
-
- my @dstZone = (
- # "ndt" => -2*3600-1800, # Newfoundland Daylight
- "brst" => -2*3600, # Brazil Summer Time (East Daylight)
- "adt" => -3*3600, # Atlantic Daylight
- "edt" => -4*3600, # Eastern Daylight
- "cdt" => -5*3600, # Central Daylight
- "mdt" => -6*3600, # Mountain Daylight
- "pdt" => -7*3600, # Pacific Daylight
- "akdt" => -8*3600, # Alaska Daylight
- "ydt" => -8*3600, # Yukon Daylight
- "hdt" => -9*3600, # Hawaii Daylight
- "bst" => +1*3600, # British Summer
- "mest" => +2*3600, # Middle European Summer
- "metdst" => +2*3600, # Middle European DST
- "sst" => +2*3600, # Swedish Summer
- "fst" => +2*3600, # French Summer
- "cest" => +2*3600, # Central European Daylight
- "eest" => +3*3600, # Eastern European Summer
- "msd" => +4*3600, # Moscow Daylight
- "wadt" => +8*3600, # West Australian Daylight
- "kdt" => +10*3600, # Korean Daylight
- # "cadt" => +10*3600+1800, # Central Australian Daylight
- "aedt" => +11*3600, # Eastern Australian Daylight
- "eadt" => +11*3600, # Eastern Australian Daylight
- "nzd" => +13*3600, # New Zealand Daylight
- "nzdt" => +13*3600, # New Zealand Daylight
- );
-
- my @Zone = (
- "gmt" => 0, # Greenwich Mean
- "ut" => 0, # Universal (Coordinated)
- "utc" => 0,
- "wet" => 0, # Western European
- "wat" => -1*3600, # West Africa
- "at" => -2*3600, # Azores
- "fnt" => -2*3600, # Brazil Time (Extreme East - Fernando Noronha)
- "brt" => -3*3600, # Brazil Time (East Standard - Brasilia)
- # For completeness. BST is also British Summer, and GST is also Guam Standard.
- # "bst" => -3*3600, # Brazil Standard
- # "gst" => -3*3600, # Greenland Standard
- # "nft" => -3*3600-1800,# Newfoundland
- # "nst" => -3*3600-1800,# Newfoundland Standard
- "mnt" => -4*3600, # Brazil Time (West Standard - Manaus)
- "ewt" => -4*3600, # U.S. Eastern War Time
- "ast" => -4*3600, # Atlantic Standard
- "est" => -5*3600, # Eastern Standard
- "act" => -5*3600, # Brazil Time (Extreme West - Acre)
- "cst" => -6*3600, # Central Standard
- "mst" => -7*3600, # Mountain Standard
- "pst" => -8*3600, # Pacific Standard
- "akst" => -9*3600, # Alaska Standard
- "yst" => -9*3600, # Yukon Standard
- "hst" => -10*3600, # Hawaii Standard
- "cat" => -10*3600, # Central Alaska
- "ahst" => -10*3600, # Alaska-Hawaii Standard
- "nt" => -11*3600, # Nome
- "idlw" => -12*3600, # International Date Line West
- "cet" => +1*3600, # Central European
- "mez" => +1*3600, # Central European (German)
- "ect" => +1*3600, # Central European (French)
- "met" => +1*3600, # Middle European
- "mewt" => +1*3600, # Middle European Winter
- "swt" => +1*3600, # Swedish Winter
- "set" => +1*3600, # Seychelles
- "fwt" => +1*3600, # French Winter
- "eet" => +2*3600, # Eastern Europe, USSR Zone 1
- "ukr" => +2*3600, # Ukraine
- "bt" => +3*3600, # Baghdad, USSR Zone 2
- "msk" => +3*3600, # Moscow
- # "it" => +3*3600+1800,# Iran
- "zp4" => +4*3600, # USSR Zone 3
- "zp5" => +5*3600, # USSR Zone 4
- # "ist" => +5*3600+1800,# Indian Standard
- "zp6" => +6*3600, # USSR Zone 5
- # For completeness. NST is also Newfoundland Stanard, and SST is also Swedish Summer.
- # "nst" => +6*3600+1800,# North Sumatra
- # "sst" => +7*3600, # South Sumatra, USSR Zone 6
- # "jt" => +7*3600+1800,# Java (3pm in Cronusland!)
- "wst" => +8*3600, # West Australian Standard
- "hkt" => +8*3600, # Hong Kong
- "cct" => +8*3600, # China Coast, USSR Zone 7
- "jst" => +9*3600, # Japan Standard, USSR Zone 8
- "kst" => +9*3600, # Korean Standard
- # "cast" => +9*3600+1800,# Central Australian Standard
- "aest" => +10*3600, # Eastern Australian Standard
- "east" => +10*3600, # Eastern Australian Standard
- "gst" => +10*3600, # Guam Standard, USSR Zone 9
- "nzt" => +12*3600, # New Zealand
- "nzst" => +12*3600, # New Zealand Standard
- "idle" => +12*3600, # International Date Line East
- );
-
- %Zone = @Zone;
- %dstZone = @dstZone;
- %zoneOff = reverse(@Zone);
- %dstZoneOff = reverse(@dstZone);
-
-}
-
-sub tz_offset (;$$)
-{
- my ($zone, $time) = @_;
-
- return &tz_local_offset($time) unless($zone);
-
- $time = time() unless $time;
- my(@l) = localtime($time);
- my $dst = $l[8];
-
- $zone = lc $zone;
-
- if($zone =~ /^(([\-\+])\d\d?)(\d\d)$/) {
- my $v = $2 . $3;
- return $1 * 3600 + $v * 60;
- } elsif (exists $dstZone{$zone} && ($dst || !exists $Zone{$zone})) {
- return $dstZone{$zone};
- } elsif(exists $Zone{$zone}) {
- return $Zone{$zone};
- }
- undef;
-}
-
-sub tz_name (;$$)
-{
- my ($off, $dst) = @_;
-
- $off = tz_offset()
- unless(defined $off);
-
- $dst = (localtime(time))[8]
- unless(defined $dst);
-
- if (exists $dstZoneOff{$off} && ($dst || !exists $zoneOff{$off})) {
- return $dstZoneOff{$off};
- } elsif (exists $zoneOff{$off}) {
- return $zoneOff{$off};
- }
- sprintf("%+05d", int($off / 60) * 100 + $off % 60);
-}
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Win32/OLE.pm b/Master/tlpkg/tlperl/site/lib/Win32/OLE.pm
deleted file mode 100644
index ece534b15fa..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Win32/OLE.pm
+++ /dev/null
@@ -1,968 +0,0 @@
-# The documentation is at the __END__
-
-package Win32::OLE;
-
-use strict;
-use vars qw($VERSION @ISA @EXPORT @EXPORT_OK @EXPORT_FAIL $AUTOLOAD
- $CP $LCID $Warn $LastError $_NewEnum $_Unique);
-
-$VERSION = '0.1712';
-
-use Carp;
-use Exporter;
-use DynaLoader;
-@ISA = qw(Exporter DynaLoader);
-
-@EXPORT = qw();
-@EXPORT_OK = qw(in valof with HRESULT EVENTS OVERLOAD
- CP_ACP CP_OEMCP CP_MACCP CP_UTF7 CP_UTF8
- DISPATCH_METHOD DISPATCH_PROPERTYGET
- DISPATCH_PROPERTYPUT DISPATCH_PROPERTYPUTREF);
-@EXPORT_FAIL = qw(EVENTS OVERLOAD);
-
-sub export_fail {
- shift;
- my @unknown;
- while (@_) {
- my $symbol = shift;
- if ($symbol eq 'OVERLOAD') {
- eval <<'OVERLOAD';
- use overload '""' => \&valof,
- '0+' => \&valof,
- fallback => 1;
-OVERLOAD
- }
- elsif ($symbol eq 'EVENTS') {
- Win32::OLE->Initialize(Win32::OLE::COINIT_OLEINITIALIZE());
- }
- else {
- push @unknown, $symbol;
- }
- }
- return @unknown;
-}
-
-unless (defined &Dispatch) {
- # Use regular DynaLoader if XS part is not yet initialized
- bootstrap Win32::OLE;
- require Win32::OLE::Lite;
-}
-
-1;
-
-########################################################################
-
-__END__
-
-=head1 NAME
-
-Win32::OLE - OLE Automation extensions
-
-=head1 SYNOPSIS
-
- $ex = Win32::OLE->new('Excel.Application') or die "oops\n";
- $ex->Amethod("arg")->Bmethod->{'Property'} = "foo";
- $ex->Cmethod(undef,undef,$Arg3);
- $ex->Dmethod($RequiredArg1, {NamedArg1 => $Value1, NamedArg2 => $Value2});
-
- $wd = Win32::OLE->GetObject("D:\\Data\\Message.doc");
- $xl = Win32::OLE->GetActiveObject("Excel.Application");
-
-=head1 DESCRIPTION
-
-This module provides an interface to OLE Automation from Perl.
-OLE Automation brings VisualBasic like scripting capabilities and
-offers powerful extensibility and the ability to control many Win32
-applications from Perl scripts.
-
-The Win32::OLE module uses the IDispatch interface exclusively. It is
-not possible to access a custom OLE interface. OLE events and OCX's are
-currently not supported.
-
-Actually, that's no longer strictly true. This module now contains
-B<ALPHA> level support for OLE events. This is largely untested and the
-specific interface might still change in the future.
-
-=head2 Methods
-
-=over 8
-
-=item Win32::OLE->new(PROGID[, DESTRUCTOR])
-
-The new() class method starts a new instance of an OLE Automation object.
-It returns a reference to this object or C<undef> if the creation failed.
-
-The PROGID argument must be either the OLE I<program id> or the I<class id>
-of the required application. The optional DESTRUCTOR specifies a DESTROY-like
-method. This can be either a CODE reference or a string containing an OLE
-method name. It can be used to cleanly terminate OLE applications in case the
-Perl program dies.
-
-To create an object via DCOM on a remote server you can use an array
-reference in place of PROGID. The referenced array must contain the
-machine name and the I<program id> or I<class id>. For example:
-
- my $obj = Win32::OLE->new(['my.machine.com', 'Program.Id']);
-
-If the PROGID is a I<program id> then Win32::OLE will try to resolve the
-corresponding I<class id> locally. If the I<program id> is not registered
-locally then the remote registry is queried. This will only succeed if
-the local process has read access to the remote registry. The safest
-(and fastest) method is to specify the C<class id> directly.
-
-=item Win32::OLE->EnumAllObjects([CALLBACK])
-
-This class method returns the number Win32::OLE objects currently in
-existence. It will call the optional CALLBACK function for each of
-these objects:
-
- $Count = Win32::OLE->EnumAllObjects(sub {
- my $Object = shift;
- my $Class = Win32::OLE->QueryObjectType($Object);
- printf "# Object=%s Class=%s\n", $Object, $Class;
- });
-
-The EnumAllObjects() method is primarily a debugging tool. It can be
-used e.g. in an END block to check if all external connections have
-been properly destroyed.
-
-=item Win32::OLE->FreeUnusedLibraries()
-
-The FreeUnusedLibraries() class method unloads all unused OLE
-resources. These are the libraries of those classes of which all
-existing objects have been destroyed. The unloading of object
-libraries is really only important for long running processes that
-might instantiate a huge number of B<different> objects over time.
-
-Be aware that objects implemented in Visual Basic have a buggy
-implementation of this functionality: They pretend to be unloadable
-while they are actually still running their cleanup code. Unloading
-the DLL at that moment typically produces an access violation. The
-probability for this problem can be reduced by calling the
-SpinMessageLoop() method and sleep()ing for a few seconds.
-
-=item Win32::OLE->GetActiveObject(CLASS[, DESTRUCTOR])
-
-The GetActiveObject() class method returns an OLE reference to a
-running instance of the specified OLE automation server. It returns
-C<undef> if the server is not currently active. It will croak if
-the class is not even registered. The optional DESTRUCTOR method takes
-either a method name or a code reference. It is executed when the last
-reference to this object goes away. It is generally considered rude
-to stop applications that you did not start yourself.
-
-=item Win32::OLE->GetObject(MONIKER[, DESTRUCTOR])
-
-The GetObject() class method returns an OLE reference to the specified
-object. The object is specified by a pathname optionally followed by
-additional item subcomponent separated by exclamation marks '!'. The
-optional DESTRUCTOR argument has the same semantics as the DESTRUCTOR in
-new() or GetActiveObject().
-
-=item Win32::OLE->Initialize([COINIT])
-
-The Initialize() class method can be used to specify an alternative
-apartment model for the Perl thread. It must be called B<before> the
-first OLE object is created. If the C<Win32::OLE::Const> module is
-used then the call to the Initialize() method must be made from a BEGIN
-block before the first C<use> statement for the C<Win32::OLE::Const>
-module.
-
-Valid values for COINIT are:
-
- Win32::OLE::COINIT_APARTMENTTHREADED - single threaded
- Win32::OLE::COINIT_MULTITHREADED - the default
- Win32::OLE::COINIT_OLEINITIALIZE - single threaded, additional OLE stuff
-
-COINIT_OLEINITIALIZE is sometimes needed when an OLE object uses
-additional OLE compound document technologies not available from the
-normal COM subsystem (for example MAPI.Session seems to require it).
-Both COINIT_OLEINITIALIZE and COINIT_APARTMENTTHREADED create a hidden
-top level window and a message queue for the Perl process. This may
-create problems with other application, because Perl normally doesn't
-process its message queue. This means programs using synchronous
-communication between applications (such as DDE initiation), may hang
-until Perl makes another OLE method call/property access or terminates.
-This applies to InstallShield setups and many things started to shell
-associations. Please try to utilize the C<Win32::OLE-E<gt>SpinMessageLoop>
-and C<Win32::OLE-E<gt>Uninitialize> methods if you can not use the default
-COINIT_MULTITHREADED model.
-
-=item OBJECT->Invoke(METHOD[, ARGS])
-
-The Invoke() object method is an alternate way to invoke OLE
-methods. It is normally equivalent to C<$OBJECT-E<gt>METHOD(@ARGS)>. This
-function must be used if the METHOD name contains characters not valid
-in a Perl variable name (like foreign language characters). It can
-also be used to invoke the default method of an object even if the
-default method has not been given a name in the type library. In this
-case use <undef> or C<''> as the method name. To invoke an OLE objects
-native Invoke() method (if such a thing exists), please use:
-
- $Object->Invoke('Invoke', @Args);
-
-=item Win32::OLE->LastError()
-
-The LastError() class method returns the last recorded OLE
-error. This is a dual value like the C<$!> variable: in a numeric
-context it returns the error number and in a string context it returns
-the error message. The error number is a signed HRESULT value. Please
-use the L<HRESULT(ERROR)> function to convert an unsigned hexadecimal
-constant to a signed HRESULT.
-
-The last OLE error is automatically reset by a successful OLE
-call. The numeric value can also explicitly be set by a call (which will
-discard the string value):
-
- Win32::OLE->LastError(0);
-
-=item OBJECT->LetProperty(NAME,ARGS,VALUE)
-
-In Win32::OLE property assignment using the hash syntax is equivalent
-to the Visual Basic C<Set> syntax (I<by reference> assignment):
-
- $Object->{Property} = $OtherObject;
-
-corresponds to this Visual Basic statement:
-
- Set Object.Property = OtherObject
-
-To get the I<by value> treatment of the Visual Basic C<Let> statement
-
- Object.Property = OtherObject
-
-you have to use the LetProperty() object method in Perl:
-
- $Object->LetProperty($Property, $OtherObject);
-
-LetProperty() also supports optional arguments for the property assignment.
-See L<OBJECT->SetProperty(NAME,ARGS,VALUE)> for details.
-
-=item Win32::OLE->MessageLoop()
-
-The MessageLoop() class method will run a standard Windows message
-loop, dispatching messages until the QuitMessageLoop() class method is
-called. It is used to wait for OLE events.
-
-=item Win32::OLE->Option(OPTION)
-
-The Option() class method can be used to inspect and modify
-L<Module Options>. The single argument form retrieves the value of
-an option:
-
- my $CP = Win32::OLE->Option('CP');
-
-A single call can be used to set multiple options simultaneously:
-
- Win32::OLE->Option(CP => CP_ACP, Warn => 3);
-
-=item Win32::OLE->QueryObjectType(OBJECT)
-
-The QueryObjectType() class method returns a list of the type library
-name and the objects class name. In a scalar context it returns the
-class name only. It returns C<undef> when the type information is not
-available.
-
-=item Win32::OLE->QuitMessageLoop()
-
-The QuitMessageLoop() class method posts a (user-level) "Quit" message
-to the current threads message loop. QuitMessageLoop() is typically
-called from an event handler. The MessageLoop() class method will
-return when it receives this "Quit" method.
-
-=item OBJECT->SetProperty(NAME,ARGS,VALUE)
-
-The SetProperty() method allows to modify properties with arguments,
-which is not supported by the hash syntax. The hash form
-
- $Object->{Property} = $Value;
-
-is equivalent to
-
- $Object->SetProperty('Property', $Value);
-
-Arguments must be specified between the property name and the new value:
-
- $Object->SetProperty('Property', @Args, $Value);
-
-It is not possible to use "named argument" syntax with this function
-because the new value must be the last argument to SetProperty().
-
-This method hides any native OLE object method called SetProperty().
-The native method will still be available through the Invoke() method:
-
- $Object->Invoke('SetProperty', @Args);
-
-=item Win32::OLE->SpinMessageLoop
-
-This class method retrieves all pending messages from the message queue
-and dispatches them to their respective window procedures. Calling this
-method is only necessary when not using the COINIT_MULTITHREADED model.
-All OLE method calls and property accesses automatically process the
-message queue.
-
-=item Win32::OLE->Uninitialize
-
-The Uninitialize() class method uninitializes the OLE subsystem. It
-also destroys the hidden top level window created by OLE for single
-threaded apartments. All OLE objects will become invalid after this call!
-It is possible to call the Initialize() class method again with a different
-apartment model after shutting down OLE with Uninitialize().
-
-=item Win32::OLE->WithEvents(OBJECT[, HANDLER[, INTERFACE]])
-
-This class method enables and disables the firing of events by the
-specified OBJECT. If no HANDLER is specified, then events are
-disconnected. For some objects Win32::OLE is not able to
-automatically determine the correct event interface. In this case the
-INTERFACE argument must contain either the COCLASS name of the OBJECT
-or the name of the event DISPATCH interface. Please read the L<Events>
-section below for detailed explanation of the Win32::OLE event
-support.
-
-=back
-
-Whenever Perl does not find a method name in the Win32::OLE package it
-is automatically used as the name of an OLE method and this method call
-is dispatched to the OLE server.
-
-There is one special hack built into the module: If a method or property
-name could not be resolved with the OLE object, then the default method
-of the object is called with the method name as its first parameter. So
-
- my $Sheet = $Worksheets->Table1;
-or
- my $Sheet = $Worksheets->{Table1};
-
-is resolved as
-
- my $Sheet = $Worksheet->Item('Table1');
-
-provided that the $Worksheets object does not have a C<Table1> method
-or property. This hack has been introduced to call the default method
-of collections which did not name the method in their type library. The
-recommended way to call the "unnamed" default method is:
-
- my $Sheet = $Worksheets->Invoke('', 'Table1');
-
-This special hack is disabled under C<use strict 'subs';>.
-
-=head2 Object methods and properties
-
-The object returned by the new() method can be used to invoke
-methods or retrieve properties in the same fashion as described
-in the documentation for the particular OLE class (eg. Microsoft
-Excel documentation describes the object hierarchy along with the
-properties and methods exposed for OLE access).
-
-Optional parameters on method calls can be omitted by using C<undef>
-as a placeholder. A better way is to use named arguments, as the
-order of optional parameters may change in later versions of the OLE
-server application. Named parameters can be specified in a reference
-to a hash as the last parameter to a method call.
-
-Properties can be retrieved or set using hash syntax, while methods
-can be invoked with the usual perl method call syntax. The C<keys>
-and C<each> functions can be used to enumerate an object's properties.
-Beware that a property is not always writable or even readable (sometimes
-raising exceptions when read while being undefined).
-
-If a method or property returns an embedded OLE object, method
-and property access can be chained as shown in the examples below.
-
-=head2 Functions
-
-The following functions are not exported by default.
-
-=over 8
-
-=item HRESULT(ERROR)
-
-The HRESULT() function converts an unsigned number into a signed HRESULT
-error value as used by OLE internally. This is necessary because Perl
-treats all hexadecimal constants as unsigned. To check if the last OLE
-function returned "Member not found" (0x80020003) you can write:
-
- if (Win32::OLE->LastError == HRESULT(0x80020003)) {
- # your error recovery here
- }
-
-=item in(COLLECTION)
-
-If COLLECTION is an OLE collection object then C<in $COLLECTION>
-returns a list of all members of the collection. This is a shortcut
-for C<Win32::OLE::Enum-E<gt>All($COLLECTION)>. It is most commonly used in
-a C<foreach> loop:
-
- foreach my $value (in $collection) {
- # do something with $value here
- }
-
-=item valof(OBJECT)
-
-Normal assignment of Perl OLE objects creates just another reference
-to the OLE object. The valof() function explictly dereferences the
-object (through the default method) and returns the value of the object.
-
- my $RefOf = $Object;
- my $ValOf = valof $Object;
- $Object->{Value} = $NewValue;
-
-Now $ValOf still contains the old value whereas $RefOf would
-resolve to the $NewValue because it is still a reference to
-$Object.
-
-The valof() function can also be used to convert Win32::OLE::Variant
-objects to Perl values.
-
-=item with(OBJECT, PROPERTYNAME => VALUE, ...)
-
-This function provides a concise way to set the values of multiple
-properties of an object. It iterates over its arguments doing
-C<$OBJECT-E<gt>{PROPERTYNAME} = $VALUE> on each trailing pair.
-
-=back
-
-=head2 Overloading
-
-The Win32::OLE objects can be overloaded to automatically convert to
-their values whenever they are used in a bool, numeric or string
-context. This is not enabled by default. You have to request it
-through the OVERLOAD pseudoexport:
-
- use Win32::OLE qw(in valof with OVERLOAD);
-
-You can still get the original string representation of an object
-(C<Win32::OLE=0xDEADBEEF>), e.g. for debugging, by using the
-C<overload::StrVal()> method:
-
- print overload::StrVal($object), "\n";
-
-Please note that C<OVERLOAD> is a global setting. If any module enables
-Win32::OLE overloading then it's active everywhere.
-
-=head2 Events
-
-The Win32::OLE module now contains B<ALPHA> level event support. This
-support is only available when Perl is running in a single threaded
-apartment. This can most easily be assured by using the C<EVENTS>
-pseudo-import:
-
- use Win32::OLE qw(EVENTS);
-
-which implicitly does something like:
-
- use Win32::OLE;
- Win32::OLE->Initialize(Win32::OLE::COINIT_OLEINITIALIZE);
-
-The current interface to OLE events should be considered experimental
-and is subject to change. It works as expected for normal OLE
-applications, but OLE control events often don't seem to work yet.
-
-Events must be enabled explicitly for an OLE object through the
-Win32::OLE->WithEvents() class method. The Win32::OLE module uses the
-IProvideClassInfo2 interface to determine the default event source of
-the object. If this interface is not supported, then the user must
-specify the name of the event source explicitly in the WithEvents()
-method call. It is also possible to specify the class name of the
-object as the third parameter. In this case Win32::OLE will try to
-look up the default source interface for this COCLASS.
-
-The HANDLER argument to Win32::OLE->WithEvents() can either be a CODE
-reference or a package name. In the first case, all events will invoke
-this particular function. The first two arguments to this function will
-be the OBJECT itself and the name of the event. The remaining arguments
-will be event specific.
-
- sub Event {
- my ($Obj,$Event,@Args) = @_;
- print "Event triggered: '$Event'\n";
- }
- Win32::OLE->WithEvents($Obj, \&Event);
-
-Alternatively the HANDLER argument can specify a package name. When the
-OBJECT fires an event, Win32::OLE will try to find a function of the same
-name as the event in this package. This function will be called with the
-OBJECT as the first argument followed again by the event specific parameters:
-
- package MyEvents;
- sub EventName1 {
- my ($Obj,@Args) = @_;
- print "EventName1 event triggered\n";
- }
-
- package main;
- Win32::OLE->WithEvents($Obj, 'MyEvents', 'IEventInterface');
-
-If Win32::OLE doesn't find a function with the name of the event then nothing
-happens.
-
-Event parameters passed I<by reference> are handled specially. They are not
-converted to the corresponding Perl datatype but passed as Win32::OLE::Variant
-objects. You can assign a new value to these objects with the help of the
-Put() method. This value will be passed back to the object when the event
-function returns:
-
- package MyEvents;
- sub BeforeClose {
- my ($self,$Cancel) = @_;
- $Cancel->Put(1) unless $MayClose;
- }
-
-Direct assignment to $Cancel would have no effect on the original value and
-would therefore not command the object to abort the closing action.
-
-=head2 Module Options
-
-The following module options can be accessed and modified with the
-C<Win32::OLE-E<gt>Option> class method. In earlier versions of the Win32::OLE
-module these options were manipulated directly as class variables. This
-practice is now deprecated.
-
-=over 8
-
-=item CP
-
-This variable is used to determine the codepage used by all
-translations between Perl strings and Unicode strings used by the OLE
-interface. The default value is CP_ACP, which is the default ANSI
-codepage. Other possible values are CP_OEMCP, CP_MACCP, CP_UTF7 and
-CP_UTF8. These constants are not exported by default.
-
-=item LCID
-
-This variable controls the locale identifier used for all OLE calls.
-It is set to LOCALE_NEUTRAL by default. Please check the
-L<Win32::OLE::NLS> module for other locale related information.
-
-=item Variant
-
-This options controls how method calls and property accessors return
-values of type VT_CY and VT_DECIMAL are being returned. By default
-VT_CY values are turned into strings and VT_DECIMAL values into
-floating point numbers. If the C<Variant> option is enabled, these
-values are returned as Win32::OLE::Variant objects, just like VT_DATE
-and VT_ERROR values. If the Win32::OLE::Variant module is also
-loaded, then all values should still behave as before in string and in
-numeric context.
-
-The only reason that the C<Variant> behavior is not the default is that
-this is an incompatible change that might break existing programs.
-
-=item Warn
-
-This variable determines the behavior of the Win32::OLE module when
-an error happens. Valid values are:
-
- 0 Ignore error, return undef
- 1 Carp::carp if $^W is set (-w option)
- 2 always Carp::carp
- 3 Carp::croak
-
-The error number and message (without Carp line/module info) are
-available through the C<Win32::OLE-E<gt>LastError> class method.
-
-Alternatively the Warn option can be set to a CODE reference. E.g.
-
- Win32::OLE->Option(Warn => 3);
-
-is equivalent to
-
- Win32::OLE->Option(Warn => \&Carp::croak);
-
-This can even be used to emulate the VisualBasic C<On Error Goto
-Label> construct:
-
- Win32::OLE->Option(Warn => sub {goto CheckError});
- # ... your normal OLE code here ...
-
- CheckError:
- # ... your error handling code here ...
-
-=item _NewEnum
-
-This option enables additional enumeration support for collection
-objects. When the C<_NewEnum> option is set, all collections will
-receive one additional property: C<_NewEnum>. The value of this
-property will be a reference to an array containing all the elements
-of the collection. This option can be useful when used in conjunction
-with an automatic tree traversal program, like C<Data::Dumper> or an
-object tree browser. The value of this option should be either 1
-(enabled) or 0 (disabled, default).
-
- Win32::OLE->Option(_NewEnum => 1);
- # ...
- my @sheets = @{$Excel->Worksheets->{_NewEnum}};
-
-In normal application code, this would be better written as:
-
- use Win32::OLE qw(in);
- # ...
- my @sheets = in $Excel->Worksheets;
-
-=item _Unique
-
-The C<_Unique> options guarantees that Win32::OLE will maintain a
-one-to-one mapping between Win32::OLE objects and the native COM/OLE
-objects. Without this option, you can query the same property twice
-and get two different Win32::OLE objects for the same underlying COM
-object.
-
-Using a unique proxy makes life easier for tree traversal algorithms
-to recognize they already visited a particular node. This option
-comes at a price: Win32::OLE has to maintain a global hash of all
-outstanding objects and their corresponding proxies. Identity checks
-on COM objects can also be expensive if the objects reside
-out-of-process or even on a different computer. Therefore this option
-is off by default unless the program is being run in the debugger.
-
-Unfortunately, this option doesn't always help. Some programs will
-return new COM objects for even the same property when asked for it
-multiple times (especially for collections). In this case, there is
-nothing Win32::OLE can do to detect that these objects are in fact
-identical (because they aren't at the COM level).
-
-The C<_Unique> option can be set to either 1 (enabled) or 0 (disabled,
-default).
-
-=back
-
-=head1 EXAMPLES
-
-Here is a simple Microsoft Excel application.
-
- use Win32::OLE;
-
- # use existing instance if Excel is already running
- eval {$ex = Win32::OLE->GetActiveObject('Excel.Application')};
- die "Excel not installed" if $@;
- unless (defined $ex) {
- $ex = Win32::OLE->new('Excel.Application', sub {$_[0]->Quit;})
- or die "Oops, cannot start Excel";
- }
-
- # get a new workbook
- $book = $ex->Workbooks->Add;
-
- # write to a particular cell
- $sheet = $book->Worksheets(1);
- $sheet->Cells(1,1)->{Value} = "foo";
-
- # write a 2 rows by 3 columns range
- $sheet->Range("A8:C9")->{Value} = [[ undef, 'Xyzzy', 'Plugh' ],
- [ 42, 'Perl', 3.1415 ]];
-
- # print "XyzzyPerl"
- $array = $sheet->Range("A8:C9")->{Value};
- for (@$array) {
- for (@$_) {
- print defined($_) ? "$_|" : "<undef>|";
- }
- print "\n";
- }
-
- # save and exit
- $book->SaveAs( 'test.xls' );
- undef $book;
- undef $ex;
-
-Please note the destructor specified on the Win32::OLE->new method. It ensures
-that Excel will shutdown properly even if the Perl program dies. Otherwise
-there could be a process leak if your application dies after having opened
-an OLE instance of Excel. It is the responsibility of the module user to
-make sure that all OLE objects are cleaned up properly!
-
-Here is an example of using Variant data types.
-
- use Win32::OLE;
- use Win32::OLE::Variant;
- $ex = Win32::OLE->new('Excel.Application', \&OleQuit) or die "oops\n";
- $ex->{Visible} = 1;
- $ex->Workbooks->Add;
- # should generate a warning under -w
- $ovR8 = Variant(VT_R8, "3 is a good number");
- $ex->Range("A1")->{Value} = $ovR8;
- $ex->Range("A2")->{Value} = Variant(VT_DATE, 'Jan 1,1970');
-
- sub OleQuit {
- my $self = shift;
- $self->Quit;
- }
-
-The above will put value "3" in cell A1 rather than the string
-"3 is a good number". Cell A2 will contain the date.
-
-Similarly, to invoke a method with some binary data, you can
-do the following:
-
- $obj->Method( Variant(VT_UI1, "foo\000b\001a\002r") );
-
-Here is a wrapper class that basically delegates everything but
-new() and DESTROY(). The wrapper class shown here is another way to
-properly shut down connections if your application is liable to die
-without proper cleanup. Your own wrappers will probably do something
-more specific to the particular OLE object you may be dealing with,
-like overriding the methods that you may wish to enhance with your
-own.
-
- package Excel;
- use Win32::OLE;
-
- sub new {
- my $s = {};
- if ($s->{Ex} = Win32::OLE->new('Excel.Application')) {
- return bless $s, shift;
- }
- return undef;
- }
-
- sub DESTROY {
- my $s = shift;
- if (exists $s->{Ex}) {
- print "# closing connection\n";
- $s->{Ex}->Quit;
- return undef;
- }
- }
-
- sub AUTOLOAD {
- my $s = shift;
- $AUTOLOAD =~ s/^.*:://;
- $s->{Ex}->$AUTOLOAD(@_);
- }
-
- 1;
-
-The above module can be used just like Win32::OLE, except that
-it takes care of closing connections in case of abnormal exits.
-Note that the effect of this specific example can be easier accomplished
-using the optional destructor argument of Win32::OLE::new:
-
- my $Excel = Win32::OLE->new('Excel.Application', sub {$_[0]->Quit;});
-
-Note that the delegation shown in the earlier example is not the same as
-true subclassing with respect to further inheritance of method calls in your
-specialized object. See L<perlobj>, L<perltoot> and L<perlbot> for details.
-True subclassing (available by setting C<@ISA>) is also feasible,
-as the following example demonstrates:
-
- #
- # Add error reporting to Win32::OLE
- #
-
- package Win32::OLE::Strict;
- use Carp;
- use Win32::OLE;
-
- use strict qw(vars);
- use vars qw($AUTOLOAD @ISA);
- @ISA = qw(Win32::OLE);
-
- sub AUTOLOAD {
- my $obj = shift;
- $AUTOLOAD =~ s/^.*:://;
- my $meth = $AUTOLOAD;
- $AUTOLOAD = "SUPER::" . $AUTOLOAD;
- my $retval = $obj->$AUTOLOAD(@_);
- unless (defined($retval) || $AUTOLOAD eq 'DESTROY') {
- my $err = Win32::OLE::LastError();
- croak(sprintf("$meth returned OLE error 0x%08x",$err))
- if $err;
- }
- return $retval;
- }
-
- 1;
-
-This package inherits the constructor new() from the Win32::OLE
-package. It is important to note that you cannot later rebless a
-Win32::OLE object as some information about the package is cached by
-the object. Always invoke the new() constructor through the right
-package!
-
-Here's how the above class will be used:
-
- use Win32::OLE::Strict;
- my $Excel = Win32::OLE::Strict->new('Excel.Application', 'Quit');
- my $Books = $Excel->Workbooks;
- $Books->UnknownMethod(42);
-
-In the sample above the call to UnknownMethod() will be caught with
-
- UnknownMethod returned OLE error 0x80020009 at test.pl line 5
-
-because the Workbooks object inherits the class C<Win32::OLE::Strict> from the
-C<$Excel> object.
-
-=head1 NOTES
-
-=head2 Hints for Microsoft Office automation
-
-=over 8
-
-=item Documentation
-
-The object model for the Office applications is defined in the Visual Basic
-reference guides for the various applications. These are typically not
-installed by default during the standard installation. They can be added
-later by rerunning the setup program with the custom install option.
-
-=item Class, Method and Property names
-
-The names have been changed between different versions of Office. For
-example C<Application> was a method in Office 95 and is a property in
-Office97. Therefore it will not show up in the list of property names
-C<keys %$object> when querying an Office 95 object.
-
-The class names are not always identical to the method/property names
-producing the object. E.g. the C<Workbook> method returns an object of
-type C<Workbook> in Office 95 and C<_Workbook> in Office 97.
-
-=item Moniker (GetObject support)
-
-Office applications seem to implement file monikers only. For example
-it seems to be impossible to retrieve a specific worksheet object through
-C<GetObject("File.XLS!Sheet")>. Furthermore, in Excel 95 the moniker starts
-a Worksheet object and in Excel 97 it returns a Workbook object. You can use
-either the Win32::OLE::QueryObjectType class method or the $object->{Version}
-property to write portable code.
-
-=item Enumeration of collection objects
-
-Enumerations seem to be incompletely implemented. Office 95 application don't
-seem to support neither the Reset() nor the Clone() methods. The Clone()
-method is still unimplemented in Office 97. A single walk through the
-collection similar to Visual Basics C<for each> construct does work however.
-
-=item Localization
-
-Starting with Office 97 Microsoft has changed the localized class, method and
-property names back into English. Note that string, date and currency
-arguments are still subject to locale specific interpretation. Perl uses the
-system default locale for all OLE transaction whereas Visual Basic uses a
-type library specific locale. A Visual Basic script would use "R1C1" in string
-arguments to specify relative references. A Perl script running on a German
-language Windows would have to use "Z1S1". Set the LCID module option
-to an English locale to write portable scripts. This variable should
-not be changed after creating the OLE objects; some methods seem to randomly
-fail if the locale is changed on the fly.
-
-=item SaveAs method in Word 97 doesn't work
-
-This is an known bug in Word 97. Search the MS knowledge base for Word /
-Foxpro incompatibility. That problem applies to the Perl OLE interface as
-well. A workaround is to use the WordBasic compatibility object. It doesn't
-support all the options of the native method though.
-
- $Word->WordBasic->FileSaveAs($file);
-
-The problem seems to be fixed by applying the Office 97 Service Release 1.
-
-=item Randomly failing method calls
-
-It seems like modifying objects that are not selected/activated is sometimes
-fragile. Most of these problems go away if the chart/sheet/document is
-selected or activated before being manipulated (just like an interactive
-user would automatically do it).
-
-=back
-
-=head2 Incompatibilities
-
-There are some incompatibilities with the version distributed by Activeware
-(as of build 306).
-
-=over 8
-
-=item 1
-
-The package name has changed from "OLE" to "Win32::OLE".
-
-=item 2
-
-All functions of the form "Win32::OLEFoo" are now "Win32::OLE::Foo",
-though the old names are temporarily accommodated. Win32::OLECreateObject()
-was changed to Win32::OLE::CreateObject(), and is now called
-Win32::OLE::new() bowing to established convention for naming constructors.
-The old names should be considered deprecated, and will be removed in the
-next version.
-
-=item 3
-
-Package "OLE::Variant" is now "Win32::OLE::Variant".
-
-=item 4
-
-The Variant function is new, and is exported by default. So are
-all the VT_XXX type constants.
-
-=item 5
-
-The support for collection objects has been moved into the package
-Win32::OLE::Enum. The C<keys %$object> method is now used to enumerate
-the properties of the object.
-
-=back
-
-=head2 Bugs and Limitations
-
-=over 8
-
-=item *
-
-To invoke a native OLE method with the same name as one of the
-Win32::OLE methods (C<Dispatch>, C<Invoke>, C<SetProperty>, C<DESTROY>,
-etc.), you have to use the C<Invoke> method:
-
- $Object->Invoke('Dispatch', @AdditionalArgs);
-
-The same is true for names exported by the Exporter or the Dynaloader
-modules, e.g.: C<export>, C<export_to_level>, C<import>,
-C<_push_tags>, C<export_tags>, C<export_ok_tags>, C<export_fail>,
-C<require_version>, C<dl_load_flags>,
-C<croak>, C<bootstrap>, C<dl_findfile>, C<dl_expandspec>,
-C<dl_find_symbol_anywhere>, C<dl_load_file>, C<dl_find_symbol>,
-C<dl_undef_symbols>, C<dl_install_xsub> and C<dl_error>.
-
-=back
-
-=head1 SEE ALSO
-
-The documentation for L<Win32::OLE::Const>, L<Win32::OLE::Enum>,
-L<Win32::OLE::NLS> and L<Win32::OLE::Variant> contains additional
-information about OLE support for Perl on Win32.
-
-=head1 AUTHORS
-
-Originally put together by the kind people at Hip and Activeware.
-
-Gurusamy Sarathy <gsar@cpan.org> subsequently fixed several
-major bugs, memory leaks, and reliability problems, along with some
-redesign of the code.
-
-Jan Dubois <jand@activestate.com> pitched in with yet more massive redesign,
-added support for named parameters, and other significant enhancements.
-He's been hacking on it ever since.
-
-Please send questions about problems with this module to the
-Perl-Win32-Users mailinglist at ActiveState.com. The mailinglist charter
-requests that you put an [OLE] tag somewhere on the subject line (for OLE
-related questions only, of course).
-
-=head1 COPYRIGHT
-
- (c) 1995 Microsoft Corporation. All rights reserved.
- Developed by ActiveWare Internet Corp., now known as
- ActiveState Tool Corp., http://www.ActiveState.com
-
- Other modifications Copyright (c) 1997-2006 by Gurusamy Sarathy
- <gsar@cpan.org> and Jan Dubois <jand@activestate.com>
-
- You may distribute under the terms of either the GNU General Public
- License or the Artistic License, as specified in the README file.
-
-=head1 VERSION
-
-Version 0.1712 14 May 2014
-
-=cut
diff --git a/Master/tlpkg/tlperl/site/lib/Win32/OLE/Const.pm b/Master/tlpkg/tlperl/site/lib/Win32/OLE/Const.pm
deleted file mode 100644
index d0fe00b9ea7..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Win32/OLE/Const.pm
+++ /dev/null
@@ -1,201 +0,0 @@
-# The documentation is at the __END__
-
-package Win32::OLE::Const;
-
-use strict;
-use Carp;
-use Win32::OLE;
-
-my $Typelibs;
-sub _Typelib {
- my ($clsid,$title,$version,$langid,$filename) = @_;
- # Filenames might have a resource index appended to it.
- $filename = $1 if $filename =~ /^(.*\.(?:dll|exe))(\\\d+)$/i;
- # Ignore if it looks like a file but doesn't exist.
- # We don't verify existence of monikers or filenames
- # without a full pathname.
- return if $filename =~ /^\w:\\.*\.(exe|dll)$/ && !-f $filename;
- push @$Typelibs, \@_;
-}
-unless (__PACKAGE__->_Typelibs("TypeLib")) {
- warn("Cannot access HKEY_CLASSES_ROOT\\Typelib");
-}
-# Enumerate 32bit type libraries on Win64
-__PACKAGE__->_Typelibs("Wow6432Node\\TypeLib");
-
-sub import {
- my ($self,$name,$major,$minor,$language,$codepage) = @_;
- return unless defined($name) && $name !~ /^\s*$/;
- $self->Load($name,$major,$minor,$language,$codepage,scalar caller);
-}
-
-sub EnumTypeLibs {
- my ($self,$callback) = @_;
- foreach (@$Typelibs) { &$callback(@$_) }
- return;
-}
-
-sub Load {
- my ($self,$name,$major,$minor,$language,$codepage,$caller) = @_;
-
- if (UNIVERSAL::isa($name,'Win32::OLE')) {
- my $typelib = $name->GetTypeInfo->GetContainingTypeLib;
- return _Constants($typelib, undef);
- }
-
- undef $minor unless defined $major;
- my $typelib = $self->LoadRegTypeLib($name,$major,$minor,
- $language,$codepage);
- return _Constants($typelib, $caller);
-}
-
-sub LoadRegTypeLib {
- my ($self,$name,$major,$minor,$language,$codepage) = @_;
- undef $minor unless defined $major;
-
- unless (defined($name) && $name !~ /^\s*$/) {
- carp "Win32::OLE::Const->Load: No or invalid type library name";
- return;
- }
-
- my @found;
- foreach my $Typelib (@$Typelibs) {
- my ($clsid,$title,$version,$langid,$filename) = @$Typelib;
- next unless $title =~ /^$name/;
- next unless $version =~ /^([0-9a-fA-F]+)\.([0-9a-fA-F]+)$/;
- my ($maj,$min) = (hex($1), hex($2));
- next if defined($major) && $maj != $major;
- next if defined($minor) && $min < $minor;
- next if defined($language) && $language != $langid;
- push @found, [$clsid,$maj,$min,$langid,$filename];
- }
-
- unless (@found) {
- carp "No type library matching \"$name\" found";
- return;
- }
-
- @found = sort {
- # Prefer greater version number
- my $res = $b->[1] <=> $a->[1];
- $res = $b->[2] <=> $a->[2] if $res == 0;
- # Prefer default language for equal version numbers
- $res = -1 if $res == 0 && $a->[3] == 0;
- $res = 1 if $res == 0 && $b->[3] == 0;
- $res;
- } @found;
-
- #printf "Loading %s\n", join(' ', @{$found[0]});
- return _LoadRegTypeLib(@{$found[0]},$codepage);
-}
-
-1;
-
-__END__
-
-=head1 NAME
-
-Win32::OLE::Const - Extract constant definitions from TypeLib
-
-=head1 SYNOPSIS
-
- use Win32::OLE::Const 'Microsoft Excel';
- printf "xlMarkerStyleDot = %d\n", xlMarkerStyleDot;
-
- my $wd = Win32::OLE::Const->Load("Microsoft Word 8\\.0 Object Library");
- foreach my $key (keys %$wd) {
- printf "$key = %s\n", $wd->{$key};
- }
-
-=head1 DESCRIPTION
-
-This modules makes all constants from a registered OLE type library
-available to the Perl program. The constant definitions can be
-imported as functions, providing compile time name checking.
-Alternatively the constants can be returned in a hash reference
-which avoids defining lots of functions of unknown names.
-
-=head2 Functions/Methods
-
-=over 4
-
-=item use Win32::OLE::Const
-
-The C<use> statement can be used to directly import the constant names
-and values into the users namespace.
-
- use Win32::OLE::Const (TYPELIB,MAJOR,MINOR,LANGUAGE);
-
-The TYPELIB argument specifies a regular expression for searching
-through the registry for the type library. Note that this argument is
-implicitly prefixed with C<^> to speed up matches in the most common
-cases. Use a typelib name like ".*Excel" to match anywhere within the
-description. TYPELIB is the only required argument.
-
-The MAJOR and MINOR arguments specify the requested version of
-the type specification. If the MAJOR argument is used then only
-typelibs with exactly this major version number will be matched. The
-MINOR argument however specifies the minimum acceptable minor version.
-MINOR is ignored if MAJOR is undefined.
-
-If the LANGUAGE argument is used then only typelibs with exactly this
-language id will be matched.
-
-The module will select the typelib with the highest version number
-satisfying the request. If no language id is specified then a the default
-language (0) will be preferred over the others.
-
-Note that only constants with valid Perl variable names will be exported,
-i.e. names matching this regexp: C</^[a-zA-Z_][a-zA-Z0-9_]*$/>.
-
-=item Win32::OLE::Const->Load
-
-The Win32::OLE::Const->Load method returns a reference to a hash of
-constant definitions.
-
- my $const = Win32::OLE::Const->Load(TYPELIB,MAJOR,MINOR,LANGUAGE);
-
-The parameters are the same as for the C<use> case.
-
-This method is generally preferable when the typelib uses a non-english
-language and the constant names contain locale specific characters not
-allowed in Perl variable names.
-
-Another advantage is that all available constants can now be enumerated.
-
-The load method also accepts an OLE object as a parameter. In this case
-the OLE object is queried about its containing type library and no registry
-search is done at all. Interestingly this seems to be slower.
-
-=back
-
-=head1 EXAMPLES
-
-The first example imports all Excel constants names into the main namespace
-and prints the value of xlMarkerStyleDot (-4118).
-
- use Win32::OLE::Const ('Microsoft Excel 8.0 Object Library');
- print "xlMarkerStyleDot = %d\n", xlMarkerStyleDot;
-
-The second example returns all Word constants in a hash ref.
-
- use Win32::OLE::Const;
- my $wd = Win32::OLE::Const->Load("Microsoft Word 8.0 Object Library");
- foreach my $key (keys %$wd) {
- printf "$key = %s\n", $wd->{$key};
- }
- printf "wdGreen = %s\n", $wd->{wdGreen};
-
-The last example uses an OLE object to specify the type library:
-
- use Win32::OLE;
- use Win32::OLE::Const;
- my $Excel = Win32::OLE->new('Excel.Application', 'Quit');
- my $xl = Win32::OLE::Const->Load($Excel);
-
-
-=head1 AUTHORS/COPYRIGHT
-
-This module is part of the Win32::OLE distribution.
-
-=cut
diff --git a/Master/tlpkg/tlperl/site/lib/Win32/OLE/Enum.pm b/Master/tlpkg/tlperl/site/lib/Win32/OLE/Enum.pm
deleted file mode 100644
index 6047d2c8274..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Win32/OLE/Enum.pm
+++ /dev/null
@@ -1,95 +0,0 @@
-# The documentation is at the __END__
-
-package Win32::OLE::Enum;
-1;
-
-# everything is pure XS in Win32::OLE::Enum
-# - new
-# - DESTROY
-#
-# - All
-# - Clone
-# - Next
-# - Reset
-# - Skip
-
-__END__
-
-=head1 NAME
-
-Win32::OLE::Enum - OLE Automation Collection Objects
-
-=head1 SYNOPSIS
-
- my $Sheets = $Excel->Workbooks(1)->Worksheets;
- my $Enum = Win32::OLE::Enum->new($Sheets);
- my @Sheets = $Enum->All;
-
- while (defined(my $Sheet = $Enum->Next)) { ... }
-
-=head1 DESCRIPTION
-
-This module provides an interface to OLE collection objects from
-Perl. It defines an enumerator object closely mirroring the
-functionality of the IEnumVARIANT interface.
-
-Please note that the Reset() method is not available in all implementations
-of OLE collections (like Excel 7). In that case the Enum object is good
-only for a single walk through of the collection.
-
-=head2 Functions/Methods
-
-=over 8
-
-=item Win32::OLE::Enum->new($object)
-
-Creates an enumerator for $object, which must be a valid OLE collection
-object. Note that correctly implemented collection objects must support
-the C<Count> and C<Item> methods, so creating an enumerator is not always
-necessary.
-
-=item $Enum->All()
-
-Returns a list of all objects in the collection. You have to call
-$Enum->Reset() before the enumerator can be used again. The previous
-position in the collection is lost.
-
-This method can also be called as a class method:
-
- my @list = Win32::OLE::Enum->All($Collection);
-
-=item $Enum->Clone()
-
-Returns a clone of the enumerator maintaining the current position within
-the collection (if possible). Note that the C<Clone> method is often not
-implemented. Use $Enum->Clone() in an eval block to avoid dying if you
-are not sure that Clone is supported.
-
-=item $Enum->Next( [$count] )
-
-Returns the next element of the collection. In a list context the optional
-$count argument specifies the number of objects to be returned. In a scalar
-context only the last of at most $count retrieved objects is returned. The
-default for $count is 1.
-
-=item $Enum->Reset()
-
-Resets the enumeration sequence to the beginning. There is no guarantee that
-the exact same set of objects will be enumerated again (e.g. when enumerating
-files in a directory). The methods return value indicates the success of the
-operation. (Note that the Reset() method seems to be unimplemented in some
-applications like Excel 7. Use it in an eval block to avoid dying.)
-
-=item $Enum->Skip( [$count] )
-
-Skip the next $count elements of the enumeration. The default for $count is 1.
-The functions returns TRUE if at least $count elements could be skipped. It
-returns FALSE if not enough elements were left.
-
-=back
-
-=head1 AUTHORS/COPYRIGHT
-
-This module is part of the Win32::OLE distribution.
-
-=cut
diff --git a/Master/tlpkg/tlperl/site/lib/Win32/OLE/Lite.pm b/Master/tlpkg/tlperl/site/lib/Win32/OLE/Lite.pm
deleted file mode 100644
index 66b5e50ac0e..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Win32/OLE/Lite.pm
+++ /dev/null
@@ -1,224 +0,0 @@
-package Win32::OLE;
-
-sub _croak { require Carp; Carp::croak(@_) }
-
-unless (defined &Dispatch) {
- DynaLoader::boot_DynaLoader('DynaLoader')
- unless defined(&DynaLoader::dl_load_file);
- my $file;
- foreach my $dir (@INC) {
- my $try = "$dir/auto/Win32/OLE/OLE.dll";
- last if $file = (-f $try && $try);
- }
- _croak("Can't locate loadable object for module Win32::OLE".
- " in \@INC (\@INC contains: @INC)")
- unless $file; # wording similar to error from 'require'
-
- my $libref = DynaLoader::dl_load_file($file, 0) or
- _croak("Can't load '$file' for module Win32::OLE: ".
- DynaLoader::dl_error()."\n");
-
- my $boot_symbol_ref = DynaLoader::dl_find_symbol($libref, "boot_Win32__OLE")
- or _croak("Can't find 'boot_Win32__OLE' symbol in $file\n");
-
- my $xs = DynaLoader::dl_install_xsub("Win32::OLE::bootstrap",
- $boot_symbol_ref, $file);
- &$xs('Win32::OLE');
-}
-
-if (defined &DB::sub && !defined $_Unique) {
- warn "Win32::OLE operating in debugging mode: _Unique => 1\n";
- $_Unique = 1;
-}
-
-$Warn = 1;
-
-sub CP_ACP {0;} # ANSI codepage
-sub CP_OEMCP {1;} # OEM codepage
-sub CP_MACCP {2;}
-sub CP_UTF7 {65000;}
-sub CP_UTF8 {65001;}
-
-sub DISPATCH_METHOD {1;}
-sub DISPATCH_PROPERTYGET {2;}
-sub DISPATCH_PROPERTYPUT {4;}
-sub DISPATCH_PROPERTYPUTREF {8;}
-
-sub COINIT_MULTITHREADED {0;} # Default
-sub COINIT_APARTMENTTHREADED {2;} # Use single threaded apartment model
-
-# Bogus COINIT_* values to indicate special cases:
-sub COINIT_OLEINITIALIZE {-1;} # Use OleInitialize instead of CoInitializeEx
-sub COINIT_NO_INITIALIZE {-2;} # We are already initialized, just believe me
-
-sub HRESULT {
- my $hr = shift;
- $hr -= 2**32 if $hr & 0x80000000;
- return $hr;
-}
-
-# CreateObject is defined here only because it is documented in the
-# "Learning Perl on Win32 Systems" Gecko book. Please use Win32::OLE->new().
-sub CreateObject {
- if (ref($_[0]) && UNIVERSAL::isa($_[0],'Win32::OLE')) {
- $AUTOLOAD = ref($_[0]) . '::CreateObject';
- goto &AUTOLOAD;
- }
-
- # Hack to allow C<$obj = CreateObject Win32::OLE 'My.App';>. Although this
- # is contrary to the Gecko, we just make it work since it doesn't hurt.
- return Win32::OLE->new($_[1]) if $_[0] eq 'Win32::OLE';
-
- # Gecko form: C<$success = Win32::OLE::CreateObject('My.App',$obj);>
- $_[1] = Win32::OLE->new($_[0]);
- return defined $_[1];
-}
-
-sub LastError {
- unless (defined $_[0]) {
- # Win32::OLE::LastError() will always return $Win32::OLE::LastError
- return $LastError;
- }
-
- if (ref($_[0]) && UNIVERSAL::isa($_[0],'Win32::OLE')) {
- $AUTOLOAD = ref($_[0]) . '::LastError';
- goto &AUTOLOAD;
- }
-
- #no strict 'refs';
- my $LastError = "$_[0]::LastError";
- $$LastError = $_[1] if defined $_[1];
- return $$LastError;
-}
-
-my $Options = "^(?:CP|LCID|Warn|Variant|_NewEnum|_Unique)\$";
-
-sub Option {
- if (ref($_[0]) && UNIVERSAL::isa($_[0],'Win32::OLE')) {
- $AUTOLOAD = ref($_[0]) . '::Option';
- goto &AUTOLOAD;
- }
-
- my $class = shift;
-
- if (@_ == 1) {
- my $option = shift;
- return ${"${class}::$option"} if $option =~ /$Options/o;
- _croak("Invalid $class option: $option");
- }
-
- while (@_) {
- my ($option,$value) = splice @_, 0, 2;
- _croak("Invalid $class option: $option") if $option !~ /$Options/o;
- ${"${class}::$option"} = $value;
- $class->_Unique() if $option eq "_Unique";
- }
-}
-
-sub Invoke {
- my ($self,$method,@args) = @_;
- $self->Dispatch($method, my $retval, @args);
- return $retval;
-}
-
-sub LetProperty {
- my ($self,$method,@args) = @_;
- $self->Dispatch([DISPATCH_PROPERTYPUT, $method], my $retval, @args);
- return $retval;
-}
-
-sub SetProperty {
- my ($self,$method,@args) = @_;
- my $wFlags = DISPATCH_PROPERTYPUT;
- if (@args) {
- # If the value is an object then it will be set by reference!
- my $value = $args[-1];
- if (UNIVERSAL::isa($value, 'Win32::OLE')) {
- $wFlags = DISPATCH_PROPERTYPUTREF;
- }
- elsif (UNIVERSAL::isa($value,'Win32::OLE::Variant')) {
- my $type = $value->Type & ~0xfff; # VT_TYPEMASK
- # VT_DISPATCH and VT_UNKNOWN represent COM objects
- $wFlags = DISPATCH_PROPERTYPUTREF if $type == 9 || $type == 13;
- }
- }
- $self->Dispatch([$wFlags, $method], my $retval, @args);
- return $retval;
-}
-
-sub AUTOLOAD {
- my $self = shift;
- my $autoload = substr $AUTOLOAD, rindex($AUTOLOAD, ':')+1;
- _croak("Cannot autoload class method \"$autoload\"")
- unless ref($self) && UNIVERSAL::isa($self, 'Win32::OLE');
- my $success = $self->Dispatch($autoload, my $retval, @_);
- unless (defined $success || ($^H & 0x200) != 0) {
- # Retry default method if C<no strict 'subs';>
- $self->Dispatch(undef, $retval, $autoload, @_);
- }
- return $retval;
-}
-
-sub in {
- my @res;
- while (@_) {
- my $this = shift;
- if (UNIVERSAL::isa($this, 'Win32::OLE')) {
- push @res, Win32::OLE::Enum->All($this);
- }
- elsif (ref($this) eq 'ARRAY') {
- push @res, @$this;
- }
- else {
- push @res, $this;
- }
- }
- return @res;
-}
-
-sub valof {
- my $arg = shift;
- if (UNIVERSAL::isa($arg, 'Win32::OLE')) {
- require Win32::OLE::Variant;
- my ($class) = overload::StrVal($arg) =~ /^([^=]+)=/;
- #no strict 'refs';
- local $Win32::OLE::CP = ${"${class}::CP"};
- local $Win32::OLE::LCID = ${"${class}::LCID"};
- #use strict 'refs';
- # VT_EMPTY variant for return code
- my $variant = Win32::OLE::Variant->new;
- $arg->Dispatch(undef, $variant);
- return $variant->Value;
- }
- $arg = $arg->Value if UNIVERSAL::can($arg, 'Value');
- return $arg;
-}
-
-sub with {
- my $object = shift;
- while (@_) {
- my $property = shift;
- $object->{$property} = shift;
- }
-}
-
-########################################################################
-
-package Win32::OLE::Tie;
-
-# Only retry default method under C<no strict 'subs';>
-sub FETCH {
- my ($self,$key) = @_;
- if ($key eq "_NewEnum") {
- (my $class = ref $self) =~ s/::Tie$//;
- return [Win32::OLE::Enum->All($self)] if ${"${class}::_NewEnum"};
- }
- $self->Fetch($key, !$Win32::OLE::Strict);
-}
-
-sub STORE {
- my ($self,$key,$value) = @_;
- $self->Store($key, $value, !$Win32::OLE::Strict);
-}
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Win32/OLE/NEWS.pod b/Master/tlpkg/tlperl/site/lib/Win32/OLE/NEWS.pod
deleted file mode 100644
index 217fe4a6fcc..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Win32/OLE/NEWS.pod
+++ /dev/null
@@ -1,380 +0,0 @@
-=pod
-
-=head1 NAME
-
-Win32::OLE::NEWS - What's new in Win32::OLE
-
-This file contains a history of user visible changes to the
-Win32::OLE::* modules. Only new features and major bug fixes that
-might affect backwards compatibility are included.
-
-=head1 Version 0.18
-
-=head2 VT_CY and VT_DECIMAL return values handled differently
-
-The new C<Variant> option enables values of VT_CY or VT_DECIMAL type
-to be returned as Win32::OLE::Variant objects instead of being
-converted into strings and numbers respectively. This is similar to
-the change in Win32::OLE version 0.12 to VT_DATE and VT_ERROR values.
-The Win32::OLE::Variant module must be included to make sure that
-VT_CY and VT_DECIMAL values behave as before in numeric or string
-contexts.
-
-Because the new behavior is potentially incompatible, it must be
-explicitly enabled:
-
- Win32::OLE->Option(Variant => 1);
-
-
-=head1 Version 0.17
-
-=head2 New nullstring() function in Win32::OLE::Variant
-
-The nullstring() function returns a VT_BSTR variant containing a NULL
-string pointer. Note that this is not the same as a VT_BSTR variant
-containing the empty string "".
-
-The nullstring() return value is equivalent to the Visual Basic
-C<vbNullString> constant.
-
-
-=head1 Version 0.16
-
-=head2 Improved Unicode support
-
-Passing Unicode strings to methods and properties as well as returning
-Unicode strings back to Perl works now with both Perl 5.6 and 5.8.
-Note that the Unicode support in 5.8 is much more complete than in 5.6
-or 5.6.1.
-
-C<Unicode::String> objects can now be passed to methods or assigned to
-properties.
-
-You must enable Unicode support by switching Win32::OLE to the UTF8
-codepage:
-
- Win32::OLE->Option(CP => Win32::OLE::CP_UTF8());
-
-
-=head1 Version 0.13
-
-=head2 New nothing() function in Win32::OLE::Variant
-
-The nothing() function returns an empty VT_DISPATCH variant. It can be
-used to clear an object reference stored in a property
-
- use Win32::OLE::Variant qw(:DEFAULT nothing);
- # ...
- $object->{Property} = nothing;
-
-This has the same effect as the Visual Basic statement
-
- Set object.Property = Nothing
-
-=head2 New _NewEnum and _Unique options
-
-There are two new options available for the Win32::OLE->Option class
-method: C<_NewEnum> provides the elements of a collection object
-directly as the value of a C<_NewEnum> property. The C<_Unique>
-option guarantees that Win32::OLE will not create multiple proxy
-objects for the same underlying COM/OLE object.
-
-Both options are only really useful to tree traversal programs or
-during debugging.
-
-
-=head1 Version 0.12
-
-=head2 Additional error handling functionality
-
-The Warn option can now be set to a CODE reference too. For example,
-
- Win32::OLE->Option(Warn => 3);
-
-could now be written as
-
- Win32::OLE->Option(Warn => \&Carp::croak);
-
-This can even be used to emulate the VisualBasic C<On Error Goto
-Label> construct:
-
- Win32::OLE->Option(Warn => sub {goto CheckError});
- # ... your normal OLE code here ...
-
- CheckError:
- # ... your error handling code here ...
-
-=head2 Builtin event loop
-
-Processing OLE events required a polling loop before, e.g.
-
- my $Quit;
- #...
- until ($Quit) {
- Win32::OLE->SpinMessageLoop;
- Win32::Sleep(100);
- }
- package BrowserEvents;
- sub OnQuit { $Quit = 1 }
-
-This is inefficient and a bit odd. This version of Win32::OLE now
-supports a standard messageloop:
-
- Win32::OLE->MessageLoop();
-
- package BrowserEvents;
- sub OnQuit { Win32::OLE->QuitMessageLoop }
-
-=head2 Free unused OLE libraries
-
-Previous versions of Win32::OLE would call the CoFreeUnusedLibraries()
-API whenever an OLE object was destroyed. This made sure that OLE
-libraries would be unloaded as soon as they were no longer needed.
-Unfortunately, objects implemented in Visual Basic tend to crash
-during this call, as they pretend to be ready for unloading, when in
-fact, they aren't.
-
-The unloading of object libraries is really only important for long
-running processes that might instantiate a huge number of B<different>
-objects over time. Therefore this API is no longer called
-automatically. The functionality is now available explicitly to those
-who want or need it by calling a Win32::OLE class method:
-
- Win32::OLE->FreeUnusedLibraries();
-
-=head2 The "Win32::OLE" article from "The Perl Journal #10"
-
-The article is Copyright 1998 by I<The Perl
-Journal>. http://www.tpj.com
-
-It originally appeared in I<The Perl Journal> # 10 and appears here
-courtesy of Jon Orwant and I<The Perl Journal>. The sample code from
-the article is in the F<eg/tpj.pl> file.
-
-=head2 VARIANT->Put() bug fixes
-
-The Put() method didn't work correctly for arrays of type VT_BSTR,
-VT_DISPATH or VT_UNKNOWN. This has been fixed.
-
-=head2 Error message fixes
-
-Previous versions of Win32::OLE gave a wrong argument index for some
-OLE error messages (the number was too large by 1). This should be
-fixed now.
-
-=head2 VT_DATE and VT_ERROR return values handled differently
-
-Method calls and property accesses returning a VT_DATE or VT_ERROR
-value would previously translate the value to string or integer
-format. This has been changed to return a Win32::OLE::Variant object.
-The return values will behave as before if the Win32::OLE::Variant
-module is being used. This module overloads the conversion of
-the objects to strings and numbers.
-
-
-=head1 Version 0.11 (changes since 0.1008)
-
-=head2 new DHTML typelib browser
-
-The Win32::OLE distribution now contains a type library browser. It
-is written in PerlScript, generating dynamic HTML. It requires
-Internet Explorer 4.0 or later. You'll find it in
-F<browser/Browser.html>. It should be available in the ActivePerl
-HTML help under Win32::OLE::Browser.
-
-After selecting a library, type or member you can press F1 to call up
-the corresponding help file at the appropriate location.
-
-=head2 VT_DECIMAL support
-
-The Win32::OLE::Variant module now supports VT_DECIMAL variants too.
-They are not "officially" allowed in OLE Automation calls, but even
-Microsoft's "ActiveX Data Objects" sometimes returns VT_DECIMAL
-values.
-
-VT_DECIMAL variables are stored as 96-bit integers scaled by a
-variable power of 10. The power of 10 scaling factor specifies the
-number of digits to the right of the decimal point, and ranges from 0
-to 28. With a scale of 0 (no decimal places), the largest possible
-value is +/-79,228,162,514,264,337,593,543,950,335. With a 28 decimal
-places, the largest value is +/-7.9228162514264337593543950335 and the
-smallest, non-zero value is +/-0.0000000000000000000000000001.
-
-=head1 Version 0.1008
-
-=head2 new LetProperty() object method
-
-In Win32::OLE property assignment using the hash syntax is equivalent
-to the Visual Basic C<Set> syntax (I<by reference> assignment):
-
- $Object->{Property} = $OtherObject;
-
-corresponds to this Visual Basic statement:
-
- Set Object.Property = OtherObject
-
-To get the I<by value> treatment of the Visual Basic C<Let> statement
-
- Object.Property = OtherObject
-
-you have to use the LetProperty() object method in Perl:
-
- $Object->LetProperty($Property, $OtherObject);
-
-=head2 new HRESULT() function
-
-The HRESULT() function converts an unsigned number into a signed HRESULT
-error value as used by OLE internally. This is necessary because Perl
-treats all hexadecimal constants as unsigned. To check if the last OLE
-function returned "Member not found" (0x80020003) you can write:
-
- if (Win32::OLE->LastError == HRESULT(0x80020003)) {
- # your error recovery here
- }
-
-=head1 Version 0.1007 (changes since 0.1005)
-
-=head2 OLE Event support
-
-This version of Win32::OLE contains B<ALPHA> level support for OLE events. The
-user interface is still subject to change. There are ActiveX objects / controls
-that don't fire events under the current implementation.
-
-Events are enabled for a specific object with the Win32::OLE->WithEvents()
-class method:
-
- Win32::OLE->WithEvents(OBJECT, HANDLER, INTERFACE)
-
-Please read further documentation in Win32::OLE.
-
-=head2 GetObject() and GetActiveObject() now support optional DESTRUCTOR argument
-
-It is now possible to specify a DESTRUCTOR argument to the GetObject() and
-GetActiveObject() class methods. They work identical to the new() DESTRUCTOR
-argument.
-
-=head2 Remote object instantiation via DCOM
-
-This has actually been in Win32::OLE since 0.0608, but somehow never got
-documented. You can provide an array reference in place of the usual PROGID
-parameter to Win32::OLE->new():
-
- OBJ = Win32::OLE->new([MACHINE, PRODID]);
-
-The array must contain two elements: the name of the MACHINE and the PROGID.
-This will try to create the object on the remote MACHINE.
-
-=head2 Enumerate all Win32::OLE objects
-
-This class method returns the number Win32::OLE objects currently in
-existence. It will call the optional CALLBACK function for each of
-these objects:
-
- $Count = Win32::OLE->EnumAllObjects(sub {
- my $Object = shift;
- my $Class = Win32::OLE->QueryObjectType($Object);
- printf "# Object=%s Class=%s\n", $Object, $Class;
- });
-
-The EnumAllObjects() method is primarily a debugging tool. It can be
-used e.g. in an END block to check if all external connections have
-been properly destroyed.
-
-=head2 The VARIANT->Put() method now returns the VARIANT object itself
-
-This allows chaining of Put() method calls to set multiple values in an
-array variant:
-
- $Array->Put(0,0,$First_value)->Put(0,1,$Another_value);
-
-=head2 The VARIANT->Put(ARRAYREF) form allows assignment to a complete SAFEARRAY
-
-This allows automatic conversion from a list of lists to a SAFEARRAY.
-You can now write:
-
- my $Array = Variant(VT_ARRAY|VT_R8, [1,2], 2);
- $Array->Put([[1,2], [3,4]]);
-
-instead of the tedious:
-
- $Array->Put(1,0,1);
- $Array->Put(1,1,2);
- $Array->Put(2,0,3);
- $Array->Put(2,1,4);
-
-=head2 New Variant formatting methods
-
-There are four new methods for formatting variant values: Currency(), Date(),
-Number() and Time(). For example:
-
- my $v = Variant(VT_DATE, "April 1 99");
- print $v->Date(DATE_LONGDATE), "\n";
- print $v->Date("ddd',' MMM dd yy"), "\n";
-
-will print:
-
- Thursday, April 01, 1999
- Thu, Apr 01 99
-
-=head2 new Win32::OLE::NLS methods: SendSettingChange() and SetLocaleInfo()
-
-SendSettingChange() sends a WM_SETTINGCHANGE message to all top level windows.
-
-SetLocaleInfo() allows changing elements in the user override section of the
-locale database. Unfortunately these changes are not automatically available
-to further Variant formatting; you have to call SendSettingChange() first.
-
-=head2 Win32::OLE::Const now correctly treats version numbers as hex
-
-The minor and major version numbers of type libraries have been treated as
-decimal. This was wrong. They are now correctly decoded as hex.
-
-=head2 more robust global destruction of Win32::OLE objects
-
-The final destruction of Win32::OLE objects has always been somewhat fragile.
-The reason for this is that Perl doesn't honour reference counts during global
-destruction but destroys objects in seemingly random order. This can lead
-to leaked database connections or unterminated external objects. The only
-solution was to make all objects lexical and hope that no object would be
-trapped in a closure. Alternatively all objects could be explicitly set to
-C<undef>, which doesn't work very well with exception handling.
-
-With version 0.1007 of Win32::OLE this problem should be gone: The module
-keeps a list of active Win32::OLE objects. It uses an END block to destroy
-all objects at program termination I<before> the Perl's global destruction
-starts. Objects still existing at program termination are now destroyed in
-reverse order of creation. The effect is similar to explicitly calling
-Win32::OLE->Uninitialize() just prior to termination.
-
-=head1 Version 0.1005 (changes since 0.1003)
-
-Win32::OLE 0.1005 has been release with ActivePerl build 509. It is also
-included in the I<Perl Resource Kit for Win32> Update.
-
-=head2 optional DESTRUCTOR for GetActiveObject() GetObject() class methods
-
-The GetActiveObject() and GetObject() class method now also support an
-optional DESTRUCTOR parameter just like Win32::OLE->new(). The DESTRUCTOR
-is executed when the last reference to this object goes away. It is
-generally considered C<impolite> to stop applications that you did not
-start yourself.
-
-=head2 new Variant object method: $object->Copy()
-
-See L<Win32::OLE::Variant/Copy([DIM])>.
-
-=head2 new Win32::OLE->Option() class method
-
-The Option() class method can be used to inspect and modify
-L<Win32::OLE/Module Options>. The single argument form retrieves
-the value of an option:
-
- my $CP = Win32::OLE->Option('CP');
-
-A single call can be used to set multiple options simultaneously:
-
- Win32::OLE->Option(CP => CP_ACP, Warn => 3);
-
-Currently the following options exist: CP, LCID and C<Warn>.
-
-=cut
diff --git a/Master/tlpkg/tlperl/site/lib/Win32/OLE/NLS.pm b/Master/tlpkg/tlperl/site/lib/Win32/OLE/NLS.pm
deleted file mode 100644
index 84ea0c77241..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Win32/OLE/NLS.pm
+++ /dev/null
@@ -1,968 +0,0 @@
-# The documentation is at the __END__
-
-package Win32::OLE::NLS;
-require Win32::OLE; # Make sure the XS bootstrap has been called
-
-use strict;
-use vars qw(@EXPORT @EXPORT_OK %EXPORT_TAGS @ISA);
-
-use Exporter;
-@ISA = qw(Exporter);
-
-@EXPORT = qw(
- CompareString
- LCMapString
- GetLocaleInfo
- GetStringType
- GetSystemDefaultLangID
- GetSystemDefaultLCID
- GetUserDefaultLangID
- GetUserDefaultLCID
-
- MAKELANGID
- PRIMARYLANGID
- SUBLANGID
- LANG_SYSTEM_DEFAULT
- LANG_USER_DEFAULT
- MAKELCID
- LANGIDFROMLCID
- LOCALE_SYSTEM_DEFAULT
- LOCALE_USER_DEFAULT
- );
-
-@EXPORT_OK = qw(SetLocaleInfo SendSettingChange);
-
-%EXPORT_TAGS =
-(
- CT => [qw(CT_CTYPE1 CT_CTYPE2 CT_CTYPE3)],
- C1 => [qw(C1_UPPER C1_LOWER C1_DIGIT C1_SPACE C1_PUNCT
- C1_CNTRL C1_BLANK C1_XDIGIT C1_ALPHA)],
- C2 => [qw(C2_LEFTTORIGHT C2_RIGHTTOLEFT C2_EUROPENUMBER
- C2_EUROPESEPARATOR C2_EUROPETERMINATOR C2_ARABICNUMBER
- C2_COMMONSEPARATOR C2_BLOCKSEPARATOR C2_SEGMENTSEPARATOR
- C2_WHITESPACE C2_OTHERNEUTRAL C2_NOTAPPLICABLE)],
- C3 => [qw(C3_NONSPACING C3_DIACRITIC C3_VOWELMARK C3_SYMBOL C3_KATAKANA
- C3_HIRAGANA C3_HALFWIDTH C3_FULLWIDTH C3_IDEOGRAPH C3_KASHIDA
- C3_ALPHA C3_NOTAPPLICABLE)],
- NORM => [qw(NORM_IGNORECASE NORM_IGNORENONSPACE NORM_IGNORESYMBOLS
- NORM_IGNOREWIDTH NORM_IGNOREKANATYPE NORM_IGNOREKASHIDA)],
- LCMAP => [qw(LCMAP_LOWERCASE LCMAP_UPPERCASE LCMAP_SORTKEY LCMAP_HALFWIDTH
- LCMAP_FULLWIDTH LCMAP_HIRAGANA LCMAP_KATAKANA)],
- LANG => [qw(LANG_NEUTRAL LANG_ALBANIAN LANG_ARABIC LANG_BAHASA
- LANG_BULGARIAN LANG_CATALAN LANG_CHINESE LANG_CZECH LANG_DANISH
- LANG_DUTCH LANG_ENGLISH LANG_FINNISH LANG_FRENCH LANG_GERMAN
- LANG_GREEK LANG_HEBREW LANG_HUNGARIAN LANG_ICELANDIC
- LANG_ITALIAN LANG_JAPANESE LANG_KOREAN LANG_NORWEGIAN
- LANG_POLISH LANG_PORTUGUESE LANG_RHAETO_ROMAN LANG_ROMANIAN
- LANG_RUSSIAN LANG_SERBO_CROATIAN LANG_SLOVAK LANG_SPANISH
- LANG_SWEDISH LANG_THAI LANG_TURKISH LANG_URDU)],
- SUBLANG => [qw(SUBLANG_NEUTRAL SUBLANG_DEFAULT SUBLANG_SYS_DEFAULT
- SUBLANG_CHINESE_SIMPLIFIED SUBLANG_CHINESE_TRADITIONAL
- SUBLANG_DUTCH SUBLANG_DUTCH_BELGIAN SUBLANG_ENGLISH_US
- SUBLANG_ENGLISH_UK SUBLANG_ENGLISH_AUS SUBLANG_ENGLISH_CAN
- SUBLANG_ENGLISH_NZ SUBLANG_ENGLISH_EIRE SUBLANG_FRENCH
- SUBLANG_FRENCH_BELGIAN SUBLANG_FRENCH_CANADIAN
- SUBLANG_FRENCH_SWISS SUBLANG_GERMAN SUBLANG_GERMAN_SWISS
- SUBLANG_GERMAN_AUSTRIAN SUBLANG_ITALIAN SUBLANG_ITALIAN_SWISS
- SUBLANG_NORWEGIAN_BOKMAL SUBLANG_NORWEGIAN_NYNORSK
- SUBLANG_PORTUGUESE SUBLANG_PORTUGUESE_BRAZILIAN
- SUBLANG_SERBO_CROATIAN_CYRILLIC SUBLANG_SERBO_CROATIAN_LATIN
- SUBLANG_SPANISH SUBLANG_SPANISH_MEXICAN
- SUBLANG_SPANISH_MODERN)],
- CTRY => [qw(CTRY_DEFAULT CTRY_AUSTRALIA CTRY_AUSTRIA CTRY_BELGIUM
- CTRY_BRAZIL CTRY_CANADA CTRY_DENMARK CTRY_FINLAND CTRY_FRANCE
- CTRY_GERMANY CTRY_ICELAND CTRY_IRELAND CTRY_ITALY CTRY_JAPAN
- CTRY_MEXICO CTRY_NETHERLANDS CTRY_NEW_ZEALAND CTRY_NORWAY
- CTRY_PORTUGAL CTRY_PRCHINA CTRY_SOUTH_KOREA CTRY_SPAIN
- CTRY_SWEDEN CTRY_SWITZERLAND CTRY_TAIWAN CTRY_UNITED_KINGDOM
- CTRY_UNITED_STATES)],
- LOCALE => [qw(LOCALE_NOUSEROVERRIDE LOCALE_ILANGUAGE LOCALE_SLANGUAGE
- LOCALE_SENGLANGUAGE LOCALE_SABBREVLANGNAME
- LOCALE_SNATIVELANGNAME LOCALE_ICOUNTRY LOCALE_SCOUNTRY
- LOCALE_SENGCOUNTRY LOCALE_SABBREVCTRYNAME LOCALE_SNATIVECTRYNAME
- LOCALE_IDEFAULTLANGUAGE LOCALE_IDEFAULTCOUNTRY
- LOCALE_IDEFAULTCODEPAGE LOCALE_IDEFAULTANSICODEPAGE LOCALE_SLIST
- LOCALE_IMEASURE LOCALE_SDECIMAL LOCALE_STHOUSAND
- LOCALE_SGROUPING LOCALE_IDIGITS LOCALE_ILZERO LOCALE_INEGNUMBER
- LOCALE_SNATIVEDIGITS LOCALE_SCURRENCY LOCALE_SINTLSYMBOL
- LOCALE_SMONDECIMALSEP LOCALE_SMONTHOUSANDSEP LOCALE_SMONGROUPING
- LOCALE_ICURRDIGITS LOCALE_IINTLCURRDIGITS LOCALE_ICURRENCY
- LOCALE_INEGCURR LOCALE_SDATE LOCALE_STIME LOCALE_SSHORTDATE
- LOCALE_SLONGDATE LOCALE_STIMEFORMAT LOCALE_IDATE LOCALE_ILDATE
- LOCALE_ITIME LOCALE_ITIMEMARKPOSN LOCALE_ICENTURY LOCALE_ITLZERO
- LOCALE_IDAYLZERO LOCALE_IMONLZERO LOCALE_S1159 LOCALE_S2359
- LOCALE_ICALENDARTYPE LOCALE_IOPTIONALCALENDAR
- LOCALE_IFIRSTDAYOFWEEK LOCALE_IFIRSTWEEKOFYEAR LOCALE_SDAYNAME1
- LOCALE_SDAYNAME2 LOCALE_SDAYNAME3 LOCALE_SDAYNAME4
- LOCALE_SDAYNAME5 LOCALE_SDAYNAME6 LOCALE_SDAYNAME7
- LOCALE_SABBREVDAYNAME1 LOCALE_SABBREVDAYNAME2
- LOCALE_SABBREVDAYNAME3 LOCALE_SABBREVDAYNAME4
- LOCALE_SABBREVDAYNAME5 LOCALE_SABBREVDAYNAME6
- LOCALE_SABBREVDAYNAME7 LOCALE_SMONTHNAME1 LOCALE_SMONTHNAME2
- LOCALE_SMONTHNAME3 LOCALE_SMONTHNAME4 LOCALE_SMONTHNAME5
- LOCALE_SMONTHNAME6 LOCALE_SMONTHNAME7 LOCALE_SMONTHNAME8
- LOCALE_SMONTHNAME9 LOCALE_SMONTHNAME10 LOCALE_SMONTHNAME11
- LOCALE_SMONTHNAME12 LOCALE_SMONTHNAME13 LOCALE_SABBREVMONTHNAME1
- LOCALE_SABBREVMONTHNAME2 LOCALE_SABBREVMONTHNAME3
- LOCALE_SABBREVMONTHNAME4 LOCALE_SABBREVMONTHNAME5
- LOCALE_SABBREVMONTHNAME6 LOCALE_SABBREVMONTHNAME7
- LOCALE_SABBREVMONTHNAME8 LOCALE_SABBREVMONTHNAME9
- LOCALE_SABBREVMONTHNAME10 LOCALE_SABBREVMONTHNAME11
- LOCALE_SABBREVMONTHNAME12 LOCALE_SABBREVMONTHNAME13
- LOCALE_SPOSITIVESIGN LOCALE_SNEGATIVESIGN LOCALE_IPOSSIGNPOSN
- LOCALE_INEGSIGNPOSN LOCALE_IPOSSYMPRECEDES LOCALE_IPOSSEPBYSPACE
- LOCALE_INEGSYMPRECEDES LOCALE_INEGSEPBYSPACE)],
- TIME => [qw(TIME_NOMINUTESORSECONDS TIME_NOSECONDS TIME_NOTIMEMARKER
- TIME_FORCE24HOURFORMAT)],
- DATE => [qw(DATE_SHORTDATE DATE_LONGDATE DATE_USE_ALT_CALENDAR
- DATE_YEARMONTH DATE_LTRREADING DATE_RTLREADING)],
-);
-
-foreach my $tag (keys %EXPORT_TAGS) {
- push @EXPORT_OK, @{$EXPORT_TAGS{$tag}};
-}
-
-# Character Type Flags
-sub CT_CTYPE1 { 0x0001 }
-sub CT_CTYPE2 { 0x0002 }
-sub CT_CTYPE3 { 0x0004 }
-
-# Character Type 1 Bits
-sub C1_UPPER { 0x0001 }
-sub C1_LOWER { 0x0002 }
-sub C1_DIGIT { 0x0004 }
-sub C1_SPACE { 0x0008 }
-sub C1_PUNCT { 0x0010 }
-sub C1_CNTRL { 0x0020 }
-sub C1_BLANK { 0x0040 }
-sub C1_XDIGIT { 0x0080 }
-sub C1_ALPHA { 0x0100 }
-
-# Character Type 2 Bits
-sub C2_LEFTTORIGHT { 0x1 }
-sub C2_RIGHTTOLEFT { 0x2 }
-sub C2_EUROPENUMBER { 0x3 }
-sub C2_EUROPESEPARATOR { 0x4 }
-sub C2_EUROPETERMINATOR { 0x5 }
-sub C2_ARABICNUMBER { 0x6 }
-sub C2_COMMONSEPARATOR { 0x7 }
-sub C2_BLOCKSEPARATOR { 0x8 }
-sub C2_SEGMENTSEPARATOR { 0x9 }
-sub C2_WHITESPACE { 0xA }
-sub C2_OTHERNEUTRAL { 0xB }
-sub C2_NOTAPPLICABLE { 0x0 }
-
-# Character Type 3 Bits
-sub C3_NONSPACING { 0x0001 }
-sub C3_DIACRITIC { 0x0002 }
-sub C3_VOWELMARK { 0x0004 }
-sub C3_SYMBOL { 0x0008 }
-sub C3_KATAKANA { 0x0010 }
-sub C3_HIRAGANA { 0x0020 }
-sub C3_HALFWIDTH { 0x0040 }
-sub C3_FULLWIDTH { 0x0080 }
-sub C3_IDEOGRAPH { 0x0100 }
-sub C3_KASHIDA { 0x0200 }
-sub C3_ALPHA { 0x8000 }
-sub C3_NOTAPPLICABLE { 0x0 }
-
-# String Flags
-sub NORM_IGNORECASE { 0x0001 }
-sub NORM_IGNORENONSPACE { 0x0002 }
-sub NORM_IGNORESYMBOLS { 0x0004 }
-sub NORM_IGNOREWIDTH { 0x0008 }
-sub NORM_IGNOREKANATYPE { 0x0040 }
-sub NORM_IGNOREKASHIDA { 0x40000}
-
-# Locale Dependent Mapping Flags
-sub LCMAP_LOWERCASE { 0x0100 }
-sub LCMAP_UPPERCASE { 0x0200 }
-sub LCMAP_SORTKEY { 0x0400 }
-sub LCMAP_HALFWIDTH { 0x0800 }
-sub LCMAP_FULLWIDTH { 0x1000 }
-sub LCMAP_HIRAGANA { 0x2000 }
-sub LCMAP_KATAKANA { 0x4000 }
-
-# Primary Language Identifier
-sub LANG_NEUTRAL { 0x00 }
-sub LANG_ALBANIAN { 0x1c }
-sub LANG_ARABIC { 0x01 }
-sub LANG_BAHASA { 0x21 }
-sub LANG_BULGARIAN { 0x02 }
-sub LANG_CATALAN { 0x03 }
-sub LANG_CHINESE { 0x04 }
-sub LANG_CZECH { 0x05 }
-sub LANG_DANISH { 0x06 }
-sub LANG_DUTCH { 0x13 }
-sub LANG_ENGLISH { 0x09 }
-sub LANG_FINNISH { 0x0b }
-sub LANG_FRENCH { 0x0c }
-sub LANG_GERMAN { 0x07 }
-sub LANG_GREEK { 0x08 }
-sub LANG_HEBREW { 0x0d }
-sub LANG_HUNGARIAN { 0x0e }
-sub LANG_ICELANDIC { 0x0f }
-sub LANG_ITALIAN { 0x10 }
-sub LANG_JAPANESE { 0x11 }
-sub LANG_KOREAN { 0x12 }
-sub LANG_NORWEGIAN { 0x14 }
-sub LANG_POLISH { 0x15 }
-sub LANG_PORTUGUESE { 0x16 }
-sub LANG_RHAETO_ROMAN { 0x17 }
-sub LANG_ROMANIAN { 0x18 }
-sub LANG_RUSSIAN { 0x19 }
-sub LANG_SERBO_CROATIAN { 0x1a }
-sub LANG_SLOVAK { 0x1b }
-sub LANG_SPANISH { 0x0a }
-sub LANG_SWEDISH { 0x1d }
-sub LANG_THAI { 0x1e }
-sub LANG_TURKISH { 0x1f }
-sub LANG_URDU { 0x20 }
-
-# Sublanguage Identifier
-sub SUBLANG_NEUTRAL { 0x00 }
-sub SUBLANG_DEFAULT { 0x01 }
-sub SUBLANG_SYS_DEFAULT { 0x02 }
-sub SUBLANG_CHINESE_SIMPLIFIED { 0x02 }
-sub SUBLANG_CHINESE_TRADITIONAL { 0x01 }
-sub SUBLANG_DUTCH { 0x01 }
-sub SUBLANG_DUTCH_BELGIAN { 0x02 }
-sub SUBLANG_ENGLISH_US { 0x01 }
-sub SUBLANG_ENGLISH_UK { 0x02 }
-sub SUBLANG_ENGLISH_AUS { 0x03 }
-sub SUBLANG_ENGLISH_CAN { 0x04 }
-sub SUBLANG_ENGLISH_NZ { 0x05 }
-sub SUBLANG_ENGLISH_EIRE { 0x06 }
-sub SUBLANG_FRENCH { 0x01 }
-sub SUBLANG_FRENCH_BELGIAN { 0x02 }
-sub SUBLANG_FRENCH_CANADIAN { 0x03 }
-sub SUBLANG_FRENCH_SWISS { 0x04 }
-sub SUBLANG_GERMAN { 0x01 }
-sub SUBLANG_GERMAN_SWISS { 0x02 }
-sub SUBLANG_GERMAN_AUSTRIAN { 0x03 }
-sub SUBLANG_ITALIAN { 0x01 }
-sub SUBLANG_ITALIAN_SWISS { 0x02 }
-sub SUBLANG_NORWEGIAN_BOKMAL { 0x01 }
-sub SUBLANG_NORWEGIAN_NYNORSK { 0x02 }
-sub SUBLANG_PORTUGUESE { 0x02 }
-sub SUBLANG_PORTUGUESE_BRAZILIAN { 0x01 }
-sub SUBLANG_SERBO_CROATIAN_CYRILLIC { 0x02 }
-sub SUBLANG_SERBO_CROATIAN_LATIN { 0x01 }
-sub SUBLANG_SPANISH { 0x01 }
-sub SUBLANG_SPANISH_MEXICAN { 0x02 }
-sub SUBLANG_SPANISH_MODERN { 0x03 }
-
-# Country codes
-sub CTRY_DEFAULT { 0 }
-sub CTRY_AUSTRALIA { 61 }
-sub CTRY_AUSTRIA { 43 }
-sub CTRY_BELGIUM { 32 }
-sub CTRY_BRAZIL { 55 }
-sub CTRY_CANADA { 2 }
-sub CTRY_DENMARK { 45 }
-sub CTRY_FINLAND { 358 }
-sub CTRY_FRANCE { 33 }
-sub CTRY_GERMANY { 49 }
-sub CTRY_ICELAND { 354 }
-sub CTRY_IRELAND { 353 }
-sub CTRY_ITALY { 39 }
-sub CTRY_JAPAN { 81 }
-sub CTRY_MEXICO { 52 }
-sub CTRY_NETHERLANDS { 31 }
-sub CTRY_NEW_ZEALAND { 64 }
-sub CTRY_NORWAY { 47 }
-sub CTRY_PORTUGAL { 351 }
-sub CTRY_PRCHINA { 86 }
-sub CTRY_SOUTH_KOREA { 82 }
-sub CTRY_SPAIN { 34 }
-sub CTRY_SWEDEN { 46 }
-sub CTRY_SWITZERLAND { 41 }
-sub CTRY_TAIWAN { 886 }
-sub CTRY_UNITED_KINGDOM { 44 }
-sub CTRY_UNITED_STATES { 1 }
-
-# Locale Types
-sub LOCALE_NOUSEROVERRIDE { 0x80000000 }
-sub LOCALE_ILANGUAGE { 0x0001 }
-sub LOCALE_SLANGUAGE { 0x0002 }
-sub LOCALE_SENGLANGUAGE { 0x1001 }
-sub LOCALE_SABBREVLANGNAME { 0x0003 }
-sub LOCALE_SNATIVELANGNAME { 0x0004 }
-sub LOCALE_ICOUNTRY { 0x0005 }
-sub LOCALE_SCOUNTRY { 0x0006 }
-sub LOCALE_SENGCOUNTRY { 0x1002 }
-sub LOCALE_SABBREVCTRYNAME { 0x0007 }
-sub LOCALE_SNATIVECTRYNAME { 0x0008 }
-sub LOCALE_IDEFAULTLANGUAGE { 0x0009 }
-sub LOCALE_IDEFAULTCOUNTRY { 0x000A }
-sub LOCALE_IDEFAULTCODEPAGE { 0x000B }
-sub LOCALE_IDEFAULTANSICODEPAGE { 0x1004 }
-sub LOCALE_SLIST { 0x000C }
-sub LOCALE_IMEASURE { 0x000D }
-sub LOCALE_SDECIMAL { 0x000E }
-sub LOCALE_STHOUSAND { 0x000F }
-sub LOCALE_SGROUPING { 0x0010 }
-sub LOCALE_IDIGITS { 0x0011 }
-sub LOCALE_ILZERO { 0x0012 }
-sub LOCALE_INEGNUMBER { 0x1010 }
-sub LOCALE_SNATIVEDIGITS { 0x0013 }
-sub LOCALE_SCURRENCY { 0x0014 }
-sub LOCALE_SINTLSYMBOL { 0x0015 }
-sub LOCALE_SMONDECIMALSEP { 0x0016 }
-sub LOCALE_SMONTHOUSANDSEP { 0x0017 }
-sub LOCALE_SMONGROUPING { 0x0018 }
-sub LOCALE_ICURRDIGITS { 0x0019 }
-sub LOCALE_IINTLCURRDIGITS { 0x001A }
-sub LOCALE_ICURRENCY { 0x001B }
-sub LOCALE_INEGCURR { 0x001C }
-sub LOCALE_SDATE { 0x001D }
-sub LOCALE_STIME { 0x001E }
-sub LOCALE_SSHORTDATE { 0x001F }
-sub LOCALE_SLONGDATE { 0x0020 }
-sub LOCALE_STIMEFORMAT { 0x1003 }
-sub LOCALE_IDATE { 0x0021 }
-sub LOCALE_ILDATE { 0x0022 }
-sub LOCALE_ITIME { 0x0023 }
-sub LOCALE_ITIMEMARKPOSN { 0x1005 }
-sub LOCALE_ICENTURY { 0x0024 }
-sub LOCALE_ITLZERO { 0x0025 }
-sub LOCALE_IDAYLZERO { 0x0026 }
-sub LOCALE_IMONLZERO { 0x0027 }
-sub LOCALE_S1159 { 0x0028 }
-sub LOCALE_S2359 { 0x0029 }
-sub LOCALE_ICALENDARTYPE { 0x1009 }
-sub LOCALE_IOPTIONALCALENDAR { 0x100B }
-sub LOCALE_IFIRSTDAYOFWEEK { 0x100C }
-sub LOCALE_IFIRSTWEEKOFYEAR { 0x100D }
-sub LOCALE_SDAYNAME1 { 0x002A }
-sub LOCALE_SDAYNAME2 { 0x002B }
-sub LOCALE_SDAYNAME3 { 0x002C }
-sub LOCALE_SDAYNAME4 { 0x002D }
-sub LOCALE_SDAYNAME5 { 0x002E }
-sub LOCALE_SDAYNAME6 { 0x002F }
-sub LOCALE_SDAYNAME7 { 0x0030 }
-sub LOCALE_SABBREVDAYNAME1 { 0x0031 }
-sub LOCALE_SABBREVDAYNAME2 { 0x0032 }
-sub LOCALE_SABBREVDAYNAME3 { 0x0033 }
-sub LOCALE_SABBREVDAYNAME4 { 0x0034 }
-sub LOCALE_SABBREVDAYNAME5 { 0x0035 }
-sub LOCALE_SABBREVDAYNAME6 { 0x0036 }
-sub LOCALE_SABBREVDAYNAME7 { 0x0037 }
-sub LOCALE_SMONTHNAME1 { 0x0038 }
-sub LOCALE_SMONTHNAME2 { 0x0039 }
-sub LOCALE_SMONTHNAME3 { 0x003A }
-sub LOCALE_SMONTHNAME4 { 0x003B }
-sub LOCALE_SMONTHNAME5 { 0x003C }
-sub LOCALE_SMONTHNAME6 { 0x003D }
-sub LOCALE_SMONTHNAME7 { 0x003E }
-sub LOCALE_SMONTHNAME8 { 0x003F }
-sub LOCALE_SMONTHNAME9 { 0x0040 }
-sub LOCALE_SMONTHNAME10 { 0x0041 }
-sub LOCALE_SMONTHNAME11 { 0x0042 }
-sub LOCALE_SMONTHNAME12 { 0x0043 }
-sub LOCALE_SMONTHNAME13 { 0x100E }
-sub LOCALE_SABBREVMONTHNAME1 { 0x0044 }
-sub LOCALE_SABBREVMONTHNAME2 { 0x0045 }
-sub LOCALE_SABBREVMONTHNAME3 { 0x0046 }
-sub LOCALE_SABBREVMONTHNAME4 { 0x0047 }
-sub LOCALE_SABBREVMONTHNAME5 { 0x0048 }
-sub LOCALE_SABBREVMONTHNAME6 { 0x0049 }
-sub LOCALE_SABBREVMONTHNAME7 { 0x004A }
-sub LOCALE_SABBREVMONTHNAME8 { 0x004B }
-sub LOCALE_SABBREVMONTHNAME9 { 0x004C }
-sub LOCALE_SABBREVMONTHNAME10 { 0x004D }
-sub LOCALE_SABBREVMONTHNAME11 { 0x004E }
-sub LOCALE_SABBREVMONTHNAME12 { 0x004F }
-sub LOCALE_SABBREVMONTHNAME13 { 0x100F }
-sub LOCALE_SPOSITIVESIGN { 0x0050 }
-sub LOCALE_SNEGATIVESIGN { 0x0051 }
-sub LOCALE_IPOSSIGNPOSN { 0x0052 }
-sub LOCALE_INEGSIGNPOSN { 0x0053 }
-sub LOCALE_IPOSSYMPRECEDES { 0x0054 }
-sub LOCALE_IPOSSEPBYSPACE { 0x0055 }
-sub LOCALE_INEGSYMPRECEDES { 0x0056 }
-sub LOCALE_INEGSEPBYSPACE { 0x0057 }
-
-# GetTimeFormat Flags
-sub TIME_NOMINUTESORSECONDS { 0x0001 }
-sub TIME_NOSECONDS { 0x0002 }
-sub TIME_NOTIMEMARKER { 0x0004 }
-sub TIME_FORCE24HOURFORMAT { 0x0008 }
-
-# GetDateFormat Flags
-sub DATE_SHORTDATE { 0x0001 }
-sub DATE_LONGDATE { 0x0002 }
-sub DATE_USE_ALT_CALENDAR { 0x0004 }
-sub DATE_YEARMONTH { 0x0008 }
-sub DATE_LTRREADING { 0x0010 }
-sub DATE_RTLREADING { 0x0020 }
-
-# Language Identifier Functions
-sub MAKELANGID { my ($p,$s) = @_; (($s & 0xffff) << 10) | ($p & 0xffff); }
-sub PRIMARYLANGID { my $lgid = shift; $lgid & 0x3ff; }
-sub SUBLANGID { my $lgid = shift; ($lgid >> 10) & 0x3f; }
-
-sub LANG_SYSTEM_DEFAULT { MAKELANGID(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT); }
-sub LANG_USER_DEFAULT { MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT); }
-
-# Locale Identifier Functions
-sub MAKELCID { my $lgid = shift; $lgid & 0xffff; }
-sub LANGIDFROMLCID { my $lcid = shift; $lcid & 0xffff; }
-
-sub LOCALE_SYSTEM_DEFAULT { MAKELCID(LANG_SYSTEM_DEFAULT); }
-sub LOCALE_USER_DEFAULT { MAKELCID(LANG_USER_DEFAULT); }
-
-1;
-
-__END__
-
-=head1 NAME
-
-Win32::OLE::NLS - OLE National Language Support
-
-=head1 SYNOPSIS
-
- missing
-
-=head1 DESCRIPTION
-
-This module provides access to the national language support features
-in the F<OLENLS.DLL>.
-
-=head2 Functions
-
-=over 8
-
-=item CompareString(LCID,FLAGS,STR1,STR2)
-
-Compare STR1 and STR2 in the LCID locale. FLAGS indicate the character
-traits to be used or ignored when comparing the two strings.
-
- NORM_IGNORECASE Ignore case
- NORM_IGNOREKANATYPE Ignore hiragana/katakana character differences
- NORM_IGNORENONSPACE Ignore accents, diacritics, and vowel marks
- NORM_IGNORESYMBOLS Ignore symbols
- NORM_IGNOREWIDTH Ignore character width
-
-Possible return values are:
-
- 0 Function failed
- 1 STR1 is less than STR2
- 2 STR1 is equal to STR2
- 3 STR1 is greater than STR2
-
-Note that you can subtract 2 from the return code to get values
-comparable to the C<cmp> operator.
-
-=item LCMapString(LCID,FLAGS,STR)
-
-LCMapString translates STR using LCID dependent translation.
-Flags contains a combination of the following options:
-
- LCMAP_LOWERCASE Lowercase
- LCMAP_UPPERCASE Uppercase
- LCMAP_HALFWIDTH Narrow characters
- LCMAP_FULLWIDTH Wide characters
- LCMAP_HIRAGANA Hiragana
- LCMAP_KATAKANA Katakana
- LCMAP_SORTKEY Character sort key
-
-The following normalization options can be combined with C<LCMAP_SORTKEY>:
-
- NORM_IGNORECASE Ignore case
- NORM_IGNOREKANATYPE Ignore hiragana/katakana character differences
- NORM_IGNORENONSPACE Ignore accents, diacritics, and vowel marks
- NORM_IGNORESYMBOLS Ignore symbols
- NORM_IGNOREWIDTH Ignore character width
-
-The return value is the translated string.
-
-=item GetLocaleInfo(LCID,LCTYPE)
-
-Retrieve locale setting LCTYPE from the locale specified by LCID. Use
-LOCALE_NOUSEROVERRIDE | LCTYPE to always query the locale database.
-Otherwise user changes to C<win.ini> through the windows control panel
-take precedence when retrieving values for the system default locale.
-See the documentation below for a list of valid LCTYPE values.
-
-The return value is the contents of the requested locale setting.
-
-=item GetStringType(LCID,TYPE,STR)
-
-Retrieve type information from locale LCID about each character in STR.
-The requested TYPE can be one of the following 3 levels:
-
- CT_CTYPE1 ANSI C and POSIX type information
- CT_CTYPE2 Text layout type information
- CT_CTYPE3 Text processing type information
-
-The return value is a list of values, each of wich is a bitwise OR of
-the applicable type bits from the corresponding table below:
-
- @ct = GetStringType(LOCALE_SYSTEM_DEFAULT, CT_CTYPE1, "String");
-
-ANSI C and POSIX character type information:
-
- C1_UPPER Uppercase
- C1_LOWER Lowercase
- C1_DIGIT Decimal digits
- C1_SPACE Space characters
- C1_PUNCT Punctuation
- C1_CNTRL Control characters
- C1_BLANK Blank characters
- C1_XDIGIT Hexadecimal digits
- C1_ALPHA Any letter
-
-Text layout type information:
-
- C2_LEFTTORIGHT Left to right
- C2_RIGHTTOLEFT Right to left
- C2_EUROPENUMBER European number, European digit
- C2_EUROPESEPARATOR European numeric separator
- C2_EUROPETERMINATOR European numeric terminator
- C2_ARABICNUMBER Arabic number
- C2_COMMONSEPARATOR Common numeric separator
- C2_BLOCKSEPARATOR Block separator
- C2_SEGMENTSEPARATOR Segment separator
- C2_WHITESPACE White space
- C2_OTHERNEUTRAL Other neutrals
- C2_NOTAPPLICABLE No implicit direction (e.g. ctrl codes)
-
-Text precessing type information:
-
- C3_NONSPACING Nonspacing mark
- C3_DIACRITIC Diacritic nonspacing mark
- C3_VOWELMARK Vowel nonspacing mark
- C3_SYMBOL Symbol
- C3_KATAKANA Katakana character
- C3_HIRAGANA Hiragana character
- C3_HALFWIDTH Narrow character
- C3_FULLWIDTH Wide character
- C3_IDEOGRAPH Ideograph
- C3_ALPHA Any letter
- C3_NOTAPPLICABLE Not applicable
-
-
-=item GetSystemDefaultLangID()
-
-Returns the system default language identifier.
-
-=item GetSystemDefaultLCID()
-
-Returns the system default locale identifier.
-
-=item GetUserDefaultLangID()
-
-Returns the user default language identifier.
-
-=item GetUserDefaultLCID()
-
-Returns the user default locale identifier.
-
-=item SendSettingChange()
-
-Sends a WM_SETTINGCHANGE message to all top level windows.
-
-=item SetLocaleInfo(LCID, LCTYPE, LCDATA)
-
-Changes an item in the user override part of the locale setting LCID.
-It doesn't change the system default database. The following LCTYPEs are
-changeable:
-
- LOCALE_ICALENDARTYPE LOCALE_SDATE
- LOCALE_ICURRDIGITS LOCALE_SDECIMAL
- LOCALE_ICURRENCY LOCALE_SGROUPING
- LOCALE_IDIGITS LOCALE_SLIST
- LOCALE_IFIRSTDAYOFWEEK LOCALE_SLONGDATE
- LOCALE_IFIRSTWEEKOFYEAR LOCALE_SMONDECIMALSEP
- LOCALE_ILZERO LOCALE_SMONGROUPING
- LOCALE_IMEASURE LOCALE_SMONTHOUSANDSEP
- LOCALE_INEGCURR LOCALE_SNEGATIVESIGN
- LOCALE_INEGNUMBER LOCALE_SPOSITIVESIGN
- LOCALE_IPAPERSIZE LOCALE_SSHORTDATE
- LOCALE_ITIME LOCALE_STHOUSAND
- LOCALE_S1159 LOCALE_STIME
- LOCALE_S2359 LOCALE_STIMEFORMAT
- LOCALE_SCURRENCY LOCALE_SYEARMONTH
-
-You have to call SendSettingChange() to activate these changes for
-subsequent Win32::OLE::Variant object formatting because the OLE
-subsystem seems to cache locale information.
-
-=item MAKELANGID(LANG,SUBLANG)
-
-Creates a language identifier from a primary language and a sublanguage.
-
-=item PRIMARYLANGID(LANGID)
-
-Retrieves the primary language from a language identifier.
-
-=item SUBLANGID(LANGID)
-
-Retrieves the sublanguage from a language identifier.
-
-=item MAKELCID(LANGID)
-
-Creates a locale identifies from a language identifier.
-
-=item LANGIDFROMLCID(LCID)
-
-Retrieves a language identifier from a locale identifier.
-
-=back
-
-=head2 Locale Types
-
-=over 8
-
-=item LOCALE_ILANGUAGE
-
-The language identifier (in hex).
-
-=item LOCALE_SLANGUAGE
-
-The localized name of the language.
-
-=item LOCALE_SENGLANGUAGE
-
-The ISO Standard 639 English name of the language.
-
-=item LOCALE_SABBREVLANGNAME
-
-The three-letter abbreviated name of the language. The first two
-letters are from the ISO Standard 639 language name abbreviation. The
-third letter indicates the sublanguage type.
-
-=item LOCALE_SNATIVELANGNAME
-
-The native name of the language.
-
-=item LOCALE_ICOUNTRY
-
-The country code, which is based on international phone codes.
-
-=item LOCALE_SCOUNTRY
-
-The localized name of the country.
-
-=item LOCALE_SENGCOUNTRY
-
-The English name of the country.
-
-=item LOCALE_SABBREVCTRYNAME
-
-The ISO Standard 3166 abbreviated name of the country.
-
-=item LOCALE_SNATIVECTRYNAME
-
-The native name of the country.
-
-=item LOCALE_IDEFAULTLANGUAGE
-
-Language identifier for the principal language spoken in this
-locale.
-
-=item LOCALE_IDEFAULTCOUNTRY
-
-Country code for the principal country in this locale.
-
-=item LOCALE_IDEFAULTANSICODEPAGE
-
-The ANSI code page associated with this locale. Format: 4 Unicode
-decimal digits plus a Unicode null terminator.
-
-XXX This should be translated by GetLocaleInfo. XXX
-
-=item LOCALE_IDEFAULTCODEPAGE
-
-The OEM code page associated with the country.
-
-=item LOCALE_SLIST
-
-Characters used to separate list items (often a comma).
-
-=item LOCALE_IMEASURE
-
-Default measurement system:
-
- 0 metric system (S.I.)
- 1 U.S. system
-
-=item LOCALE_SDECIMAL
-
-Characters used for the decimal separator (often a dot).
-
-=item LOCALE_STHOUSAND
-
-Characters used as the separator between groups of digits left of the decimal.
-
-=item LOCALE_SGROUPING
-
-Sizes for each group of digits to the left of the decimal. An explicit
-size is required for each group. Sizes are separated by semicolons. If
-the last value is 0, the preceding value is repeated. To group
-thousands, specify 3;0.
-
-=item LOCALE_IDIGITS
-
-The number of fractional digits.
-
-=item LOCALE_ILZERO
-
-Whether to use leading zeros in decimal fields. A setting of 0
-means use no leading zeros; 1 means use leading zeros.
-
-=item LOCALE_SNATIVEDIGITS
-
-The ten characters that are the native equivalent of the ASCII 0-9.
-
-=item LOCALE_INEGNUMBER
-
-Negative number mode.
-
- 0 (1.1)
- 1 -1.1
- 2 -1.1
- 3 1.1
- 4 1.1
-
-=item LOCALE_SCURRENCY
-
-The string used as the local monetary symbol.
-
-=item LOCALE_SINTLSYMBOL
-
-Three characters of the International monetary symbol specified in ISO
-4217, Codes for the Representation of Currencies and Funds, followed
-by the character separating this string from the amount.
-
-=item LOCALE_SMONDECIMALSEP
-
-Characters used for the monetary decimal separators.
-
-=item LOCALE_SMONTHOUSANDSEP
-
-Characters used as monetary separator between groups of digits left of
-the decimal.
-
-=item LOCALE_SMONGROUPING
-
-Sizes for each group of monetary digits to the left of the decimal. An
-explicit size is needed for each group. Sizes are separated by
-semicolons. If the last value is 0, the preceding value is
-repeated. To group thousands, specify 3;0.
-
-=item LOCALE_ICURRDIGITS
-
-Number of fractional digits for the local monetary format.
-
-=item LOCALE_IINTLCURRDIGITS
-
-Number of fractional digits for the international monetary format.
-
-=item LOCALE_ICURRENCY
-
-Positive currency mode.
-
- 0 Prefix, no separation.
- 1 Suffix, no separation.
- 2 Prefix, 1-character separation.
- 3 Suffix, 1-character separation.
-
-=item LOCALE_INEGCURR
-
-Negative currency mode.
-
- 0 ($1.1)
- 1 -$1.1
- 2 $-1.1
- 3 $1.1-
- 4 $(1.1$)
- 5 -1.1$
- 6 1.1-$
- 7 1.1$-
- 8 -1.1 $ (space before $)
- 9 -$ 1.1 (space after $)
- 10 1.1 $- (space before $)
-
-=item LOCALE_ICALENDARTYPE
-
-The type of calendar currently in use.
-
- 1 Gregorian (as in U.S.)
- 2 Gregorian (always English strings)
- 3 Era: Year of the Emperor (Japan)
- 4 Era: Year of the Republic of China
- 5 Tangun Era (Korea)
-
-=item LOCALE_IOPTIONALCALENDAR
-
-The additional calendar types available for this LCID. Can be a
-null-separated list of all valid optional calendars. Value is
-0 for "None available" or any of the LOCALE_ICALENDARTYPE settings.
-
-XXX null separated list should be translated by GetLocaleInfo XXX
-
-=item LOCALE_SDATE
-
-Characters used for the date separator.
-
-=item LOCALE_STIME
-
-Characters used for the time separator.
-
-=item LOCALE_STIMEFORMAT
-
-Time-formatting string.
-
-=item LOCALE_SSHORTDATE
-
-Short Date_Time formatting strings for this locale.
-
-=item LOCALE_SLONGDATE
-
-Long Date_Time formatting strings for this locale.
-
-=item LOCALE_IDATE
-
-Short Date format-ordering specifier.
-
- 0 Month - Day - Year
- 1 Day - Month - Year
- 2 Year - Month - Day
-
-=item LOCALE_ILDATE
-
-Long Date format ordering specifier. Value can be any of the valid
-LOCALE_IDATE settings.
-
-=item LOCALE_ITIME
-
-Time format specifier.
-
- 0 AM/PM 12-hour format.
- 1 24-hour format.
-
-=item LOCALE_ITIMEMARKPOSN
-
-Whether the time marker string (AM|PM) precedes or follows the time
-string.
- 0 Suffix (9:15 AM).
- 1 Prefix (AM 9:15).
-
-=item LOCALE_ICENTURY
-
-Whether to use full 4-digit century.
-
- 0 Two digit.
- 1 Full century.
-
-=item LOCALE_ITLZERO
-
-Whether to use leading zeros in time fields.
-
- 0 No leading zeros.
- 1 Leading zeros for hours.
-
-=item LOCALE_IDAYLZERO
-
-Whether to use leading zeros in day fields. Values as for
-LOCALE_ITLZERO.
-
-=item LOCALE_IMONLZERO
-
-Whether to use leading zeros in month fields. Values as for
-LOCALE_ITLZERO.
-
-=item LOCALE_S1159
-
-String for the AM designator.
-
-=item LOCALE_S2359
-
-String for the PM designator.
-
-=item LOCALE_IFIRSTWEEKOFYEAR
-
-Specifies which week of the year is considered first.
-
- 0 Week containing 1/1 is the first week of the year.
- 1 First full week following 1/1is the first week of the year.
- 2 First week with at least 4 days is the first week of the year.
-
-=item LOCALE_IFIRSTDAYOFWEEK
-
-Specifies the day considered first in the week. Value "0" means
-SDAYNAME1 and value "6" means SDAYNAME7.
-
-=item LOCALE_SDAYNAME1 .. LOCALE_SDAYNAME7
-
-Long name for Monday .. Sunday.
-
-=item LOCALE_SABBREVDAYNAME1 .. LOCALE_SABBREVDAYNAME7
-
-Abbreviated name for Monday .. Sunday.
-
-=item LOCALE_SMONTHNAME1 .. LOCALE_SMONTHNAME12
-
-Long name for January .. December.
-
-=item LOCALE_SMONTHNAME13
-
-Native name for 13th month, if it exists.
-
-=item LOCALE_SABBREVMONTHNAME1 .. LOCALE_SABBREVMONTHNAME12
-
-Abbreviated name for January .. December.
-
-=item LOCALE_SABBREVMONTHNAME13
-
-Native abbreviated name for 13th month, if it exists.
-
-=item LOCALE_SPOSITIVESIGN
-
-String value for the positive sign.
-
-=item LOCALE_SNEGATIVESIGN
-
-String value for the negative sign.
-
-=item LOCALE_IPOSSIGNPOSN
-
-Formatting index for positive values.
-
- 0 Parentheses surround the amount and the monetary symbol.
- 1 The sign string precedes the amount and the monetary symbol.
- 2 The sign string precedes the amount and the monetary symbol.
- 3 The sign string precedes the amount and the monetary symbol.
- 4 The sign string precedes the amount and the monetary symbol.
-
-=item LOCALE_INEGSIGNPOSN
-
-Formatting index for negative values. Values as for LOCALE_IPOSSIGNPOSN.
-
-=item LOCALE_IPOSSYMPRECEDES
-
-If the monetary symbol precedes, 1. If it succeeds a positive amount, 0.
-
-=item LOCALE_IPOSSEPBYSPACE
-
-If the monetary symbol is separated by a space from a positive amount,
-1. Otherwise, 0.
-
-=item LOCALE_INEGSYMPRECEDES
-
-If the monetary symbol precedes, 1. If it succeeds a negative amount, 0.
-
-=item LOCALE_INEGSEPBYSPACE
-
-If the monetary symbol is separated by a space from a negative amount,
-1. Otherwise, 0.
-
-=back
-
-=head1 AUTHORS/COPYRIGHT
-
-This module is part of the Win32::OLE distribution.
-
-=cut
diff --git a/Master/tlpkg/tlperl/site/lib/Win32/OLE/TPJ.pod b/Master/tlpkg/tlperl/site/lib/Win32/OLE/TPJ.pod
deleted file mode 100644
index e45770baa42..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Win32/OLE/TPJ.pod
+++ /dev/null
@@ -1,798 +0,0 @@
-=pod
-
-=head1 NAME
-
-The Perl Journal #10 - Win32::OLE by Jan Dubois
-
-=head1 INTRODUCTION
-
-Suppose you're composing a document with Microsoft Word. You want to
-include an Excel spreadsheet. You could save the spreadsheet in some
-image format that Word can understand, and import it into your
-document. But if the spreadsheet changes, your document will be out of
-date.
-
-Microsoft's OLE (Object Linking and Embedding, pronounced "olay") lets
-one program use objects from another. In the above scenario, the
-spreadsheet is the object. As long as Excel makes that spreadsheet
-available as an OLE object, and Word knows to treat it like one, your
-document will always be current.
-
-You can control OLE objects from Perl with the Win32::OLE module, and
-that's what this article is about. First, I'll show you how to "think
-OLE," which mostly involves a lot of jargon. Next, I'll show you the
-mechanics involved in using Win32::OLE. Then we'll go through a Perl
-program that uses OLE to manipulate Microsoft Excel, Microsoft Access,
-and Lotus Notes. Finally, I'll talk about Variants, an internal OLE
-data type.
-
-
-=head1 THE OLE MINDSET
-
-When an application makes an OLE object available for other
-applications to use, that's called OLE I<automation>. The program
-using the object is called the I<controller>, and the application
-providing the object is called the I<server>. OLE automation is guided
-by the OLE Component Object Model (COM) which specifies how those
-objects must behave if they are to be used by other processes and
-machines.
-
-There are two different types of OLE automation servers. I<In-process>
-servers are implemented as dynamic link libraries (DLLs) and run in
-the same process space as the controller. I<Out-of-process> servers
-are more interesting; they are standalone executables that exist as
-separate processes - possibly on a different computer.
-
-The Win32::OLE module lets your Perl program act as an OLE
-controller. It allows Perl to be used in place of other languages like
-Visual Basic or Java to control OLE objects. This makes all OLE
-automation servers immediately available as Perl modules.
-
-Don't confuse ActiveState OLE with Win32::OLE. ActiveState OLE is
-completely different, although future builds of ActiveState Perl (500
-and up) will work with Win32::OLE.
-
-Objects can expose OLE methods, properties, and events to the outside
-world. Methods are functions that the controller can call to make the
-object do something; properties describe the state of the object; and
-events let the controller know about external events affecting the
-object, such as the user clicking on a button. Since events involve
-asynchronous communication with their objects, they require either
-threads or an event loop. They are not yet supported by the Win32::OLE
-module, and for the same reason ActiveX controls (OCXs) are currently
-unsupported as well.
-
-=head1 WORKING WITH WIN32::OLE
-
-The Win32::OLE module doesn't let your Perl program create OLE
-objects. What it does do is let your Perl program act like a remote
-control for other applications-it lets your program be an OLE
-controller. You can take an OLE object from another application
-(Access, Notes, Excel, or anything else that speaks OLE) and invoke
-its methods or manipulate its properties.
-
-=head2 THE FIRST STEP: CREATING AN OLE SERVER OBJECT
-
-First, we need to create a Perl object to represent the OLE
-server. This is a weird idea; what it amounts to is that if we want to
-control OLE objects produced by, say, Excel, we have to create a Perl
-object that represents Excel. So even though our program is an OLE
-controller, it'll contain objects that represent OLE servers.
-
-You can create a new OLE I<server object> with C<< Win32::OLE->new >>.
-This takes a program ID (a human readable string like
-C<'Speech.VoiceText'>) and returns a server object:
-
- my $server = Win32::OLE->new('Excel.Application', 'Quit');
-
-Some server objects (particularly those for Microsoft Office
-applications) don't automatically terminate when your program no
-longer needs them. They need some kind of Quit method, and that's just
-what our second argument is. It can be either a code reference or a
-method name to be invoked when the object is destroyed. This lets you
-ensure that objects will be properly cleaned up even when the Perl
-program dies abnormally.
-
-To access a server object on a different computer, replace the first
-argument with a reference to a list of the server name and program ID:
-
- my $server = Win32::OLE->new(['foo.bar.com',
- 'Excel.Application']);
-
-(To get the requisite permissions, you'll need to configure your
-security settings with F<DCOMCNFG.EXE>.)
-
-You can also directly attach your program to an already running OLE
-server:
-
- my $server = Win32::OLE->GetActiveObject('Excel.Application');
-
-This fails (returning C<undef>) if no server exists, or if the server
-refuses the connection for some reason. It is also possible to use a
-persistent object moniker (usually a filename) to start the associated
-server and load the object into memory:
-
- my $doc = Win32::OLE->GetObject("MyDocument.Doc");
-
-=head2 METHOD CALLS
-
-Once you've created one of these server objects, you need to call its
-methods to make the OLE objects sing and dance. OLE methods are
-invoked just like normal Perl object methods:
-
- $server->Foo(@Arguments);
-
-This is a Perl method call - but it also triggers an OLE method call
-in the object. After your program executes this statement, the
-C<$server> object will execute its Foo() method. The available methods
-are typically documented in the application's I<object model>.
-
-B<Parameters.> By default, all parameters are positional
-(e.g. C<foo($first, $second, $third)>) rather than named (e.g.
-C<< foo(-name => "Yogi", -title => "Coach") >>). The required parameters
-come first, followed by the optional parameters; if you need to
-provide a dummy value for an optional parameter, use undef.
-
-Positional parameters get cumbersome if a method takes a lot of
-them. You can use named arguments instead if you go to a little extra
-trouble - when the last argument is a reference to a hash, the
-key/value pairs of the hash are treated as named parameters:
-
- $server->Foo($Pos1, $Pos2, {Name1 => $Value1,
- Name2 => $Value2});
-
-B<Foreign Languages and Default Methods.> Sometimes OLE servers use
-method and property names that are specific to a non-English
-locale. That means they might have non-ASCII characters, which aren't
-allowed in Perl variable names. In German, you might see C<Öffnen> used
-instead of C<Open>. In these cases, you can use the Invoke() method:
-
- $server->Invoke('Öffnen', @Arguments);
-
-This is necessary because C<< $Server->Öffnen(@Arguments) >> is a syntax
-error in current versions of Perl.
-
-=head2 PROPERTIES
-
-As I said earlier, objects can expose three things to the outside
-world: methods, properties, and events. We've covered methods, and
-Win32::OLE can't handle events. That leaves properties. But as it
-turns out, properties and events are largely interchangeable. Most
-methods have corresponding properties, and vice versa.
-
-An object's properties can be accessed with a hash reference:
-
- $server->{Bar} = $value;
- $value = $server->{Bar};
-
-This example sets and queries the value of the property named
-C<Bar>. You could also have called the object's Bar() method to
-achieve the same effect:
-
- $value = $server->Bar;
-
-However, you can't write the first line as C<< $server->Bar = $value >>,
-because you can't assign to the return value of a method call. In
-Visual Basic, OLE automation distinguishes between assigning the name
-of an object and assigning its value:
-
- Set Object = OtherObject
-
- Let Value = Object
-
-The C<Set> statement shown here makes C<Object> refer to the same object as
-C<OtherObject>. The C<Let> statement copies the value instead. (The value of
-an OLE object is what you get when you call the object's default
-method.
-
-In Perl, saying C<< $server1 = $server2 >> always creates another reference,
-just like the C<Set> in Visual Basic. If you want to assign the value
-instead, use the valof() function:
-
- my $value = valof $server;
-
-This is equivalent to
-
- my $value = $server->Invoke('');
-
-=head2 SAMPLE APPLICATION
-
-Let's look at how all of this might be used. In Listing: 1 you'll see
-F<T-Bond.pl>, a program that uses Win32::OLE for an almost-real world
-application.
-
-The developer of this application, Mary Lynch, is a financial futures
-broker. Every afternoon, she connects to the Chicago Board of Trade
-(CBoT) web site at http://www.cbot.com and collects the time and sales
-information for U.S. T-bond futures. She wants her program to create a
-chart that depicts the data in 15-minute intervals, and then she wants
-to record the data in a database for later analysis. Then she wants
-her program to send mail to her clients.
-
-Mary's program will use Microsoft Access as a database, Microsoft
-Excel to produce the chart, and Lotus Notes to send the mail. It will
-all be controlled from a single Perl program using OLE automation. In
-this section, we'll go through T-Bond. pl step by step so you can see
-how Win32::OLE lets you control these applications.
-
-=head2 DOWNLOADING A WEB PAGE WITH LWP
-
-However, Mary first needs to amass the raw T-bond data by having her
-Perl program automatically download and parse a web page. That's the
-perfect job for LWP, the libwww-perl bundle available on the CPAN. LWP
-has nothing to do with OLE. But this is a real-world application, and
-it's just what Mary needs to download her data from the Chicago Board
-of Trade.
-
- use LWP::Simple;
- my $URL = 'http://www.cbot.com/mplex/quotes/tsfut';
- my $text = get("$URL/tsf$Contract.htm");
-
-She could also have used the Win32::Internet module:
-
- use Win32::Internet;
- my $URL = 'http://www.cbot.com/mplex/quotes/tsfut';
- my $text = $Win32::Internet->new->FetchURL("$URL/tsf$Contract.htm");
-
-Mary wants to condense the ticker data into 15 minute bars. She's
-interested only in lines that look like this:
-
- 03/12/1998 US 98Mar 12116 15:28:34 Open
-
-A regular expression can be used to determine whether a line looks
-like this. If it does, the regex can split it up into individual
-fields. The price quoted above, C<12116>, really means 121 16/32, and
-needs to be converted to 121.5. The data is then condensed into 15
-minute intervals and only the first, last, highest, and lowest price
-during each interval are kept. The time series is stored in the array
-C<@Bars>. Each entry in C<@Bars> is a reference to a list of 5 elements:
-Time, Open, High, Low, and Close.
-
- foreach (split "\n", $text) {
- # 03/12/1998 US 98Mar 12116 15:28:34 Open
- my ($Date,$Price,$Hour,$Min,$Sec,$Ind) =
- m|^\s*(\d+/\d+/\d+) # " 03/12/1998"
- \s+US\s+\S+\s+(\d+) # " US 98Mar 12116"
- \s+(\d+):(\d+):(\d+) # " 12:42:40"
- \s*(.*)$|x; # " Ask"
- next unless defined $Date;
- $Day = $Date;
-
- # Convert from fractional to decimal format
- $Price = int($Price/100) + ($Price%100)/32;
-
- # Round up time to next multiple of 15 minutes
- my $NewTime = int(($Sec+$Min*60+$Hour*3600)/900+1)*900;
- unless (defined $Time && $NewTime == $Time) {
- push @Bars, [$hhmm, $Open, $High, $Low, $Close]
- if defined $Time;
- $Open = $High = $Low = $Close = undef;
- $Time = $NewTime;
- my $Hour = int($Time/3600);
- $hhmm = sprintf "%02d:%02d", $Hour, $Time/60-$Hour*60;
- }
-
- # Update 15 minute bar values
- $Close = $Price;
- $Open = $Price unless defined $Open;
- $High = $Price unless defined $High && $High > $Price;
- $Low = $Price unless defined $Low && $Low > $Price;
- }
-
- die "No data found" unless defined $Time;
- push @Bars, [$hhmm, $Open, $High, $Low, $Close];
-
-=head2 MICROSOFT ACCESS
-
-Now that Mary has her T-bond quotes, she's ready to use Win32::OLE to
-store them into a Microsoft Access database. This has the advantage
-that she can copy the database to her lap-top and work with it on her
-long New York commute. She's able to create an Access database as
-follows:
-
- use Win32::ODBC;
- use Win32::OLE;
-
- # Include the constants for the Microsoft Access
- # "Data Access Object".
-
- use Win32::OLE::Const 'Microsoft DAO';
-
- my $DSN = 'T-Bonds';
- my $Driver = 'Microsoft Access Driver (*.mdb)';
- my $Desc = 'US T-Bond Quotes';
- my $Dir = 'i:\tmp\tpj';
- my $File = 'T-Bonds.mdb';
- my $Fullname = "$Dir\\$File";
-
- # Remove old database and dataset name
- unlink $Fullname if -f $Fullname;
- Win32::ODBC::ConfigDSN(ODBC_REMOVE_DSN, $Driver, "DSN=$DSN")
- if Win32::ODBC::DataSources($DSN);
-
- # Create new database
- my $Access = Win32::OLE->new('Access.Application', 'Quit');
- my $Workspace = $Access->DBEngine->CreateWorkspace('', 'Admin', '');
- my $Database = $Workspace->CreateDatabase($Fullname, dbLangGeneral);
-
- # Add new database name
- Win32::ODBC::ConfigDSN(ODBC_ADD_DSN, $Driver,
- "DSN=$DSN", "Description=$Desc", "DBQ=$Fullname",
- "DEFAULTDIR=$Dir", "UID=", "PWD=");
-
-This uses Win32::ODBC (described in TPJ #9) to remove and create
-F<T-Bonds.mdb>. This lets Mary use the same script on her workstation
-and on her laptop even when the database is stored in different
-locations on each. The program also uses Win32::OLE to make Microsoft
-Access create an empty database.
-
-Every OLE server has some constants that your Perl program will need
-to use, made accessible by the Win32::OLE::Const module. For instance,
-to grab the Excel constants, say C<use Win32::OLE::Const 'Microsoft
-Excel'>.
-
-In the above example, we imported the Data Access Object con-stants
-just so we could use C<dbLangGeneral>.
-
-=head2 MICROSOFT EXCEL
-
-Now Mary uses Win32::OLE a second time, to have Microsoft Excel create
-the chart shown below.
-
- Figure 1: T-Bond data generated by MicroSoft Excel via Win32::OLE
-
- # Start Excel and create new workbook with a single sheet
- use Win32::OLE qw(in valof with);
- use Win32::OLE::Const 'Microsoft Excel';
- use Win32::OLE::NLS qw(:DEFAULT :LANG :SUBLANG);
-
- my $lgid = MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT);
- $Win32::OLE::LCID = MAKELCID($lgid);
-
- $Win32::OLE::Warn = 3;
-
-Here, Mary sets the locale to American English, which lets her do
-things like use American date formats (e.g. C<"12-30-98"> rather than
-C<"30-12-98">) in her program. It will continue to work even when she's
-visiting one of her international customers and has to run this
-program on their computers.
-
-The value of C<$Win32::OLE::Warn> determines what happens when an OLE
-error occurs. If it's 0, the error is ignored. If it's 2, or if it's 1
-and the script is running under C<-w>, the Win32::OLE module invokes
-C<Carp::carp()>. If C<$Win32::OLE::Warn> is set to 3, C<Carp::croak()>
-is invoked and the program dies immediately.
-
-Now the data can be put into an Excel spreadsheet to produce the
-chart. The following section of the program launches Excel and creates
-a new workbook with a single worksheet. It puts the column titles
-('Time', 'Open', 'High', 'Low', and 'Close') in a bold font on the
-first row of the sheet. The first column displays the timestamp in
-I<hh:mm> format; the next four display prices.
-
- my $Excel = Win32::OLE->new('Excel.Application', 'Quit');
- $Excel->{SheetsInNewWorkbook} = 1;
- my $Book = $Excel->Workbooks->Add;
- my $Sheet = $Book->Worksheets(1);
- $Sheet->{Name} = 'Candle';
-
- # Insert column titles
- my $Range = $Sheet->Range("A1:E1");
- $Range->{Value} = [qw(Time Open High Low Close)];
- $Range->Font->{Bold} = 1;
-
- $Sheet->Columns("A:A")->{NumberFormat} = "h:mm";
- # Open/High/Low/Close to be displayed in 32nds
- $Sheet->Columns("B:E")->{NumberFormat} = "# ?/32";
-
- # Add 15 minute data to spreadsheet
- print "Add data\n";
- $Range = $Sheet->Range(sprintf "A2:E%d", 2+$#Bars);
- $Range->{Value} = \@Bars;
-
-The last statement shows how to pass arrays to OLE objects. The
-Win32::OLE module automatically translates each array reference to a
-C<SAFEARRAY>, the internal OLE array data type. This translation first
-determines the maximum nesting level used by the Perl array, and then
-creates a C<SAFEARRAY> of the same dimension. The C<@Bars> array
-already contains the data in the correct form for the spreadsheet:
-
- ([Time1, Open1, High1, Low1, Close1],
- ...
- [TimeN, OpenN, HighN, LowN, CloseN])
-
-Now the table in the spreadsheet can be used to create a candle stick
-chart from our bars. Excel automatically chooses the time axis labels
-if they are selected before the chart is created:
-
- # Create candle stick chart as new object on worksheet
- $Sheet->Range("A:E")->Select;
-
- my $Chart = $Book->Charts->Add;
- $Chart->{ChartType} = xlStockOHLC;
- $Chart->Location(xlLocationAsObject, $Sheet->{Name});
- # Excel bug: the old $Chart is now invalid!
- $Chart = $Excel->ActiveChart;
-
-We can change the type of the chart from a separate sheet to a chart
-object on the spreadsheet page with the C<< $Chart->Location >>
-method. (This invalidates the chart object handle, which might be
-considered a bug in Excel.) Fortunately, this new chart is still the
-'active' chart, so an object handle to it can be reclaimed simply by
-asking Excel.
-
-At this point, our chart still needs a title, the legend is
-meaningless, and the axis has decimals instead of fractions. We can
-fix those with the following code:
-
- # Add title, remove legend
- with($Chart, HasLegend => 0, HasTitle => 1);
- $Chart->ChartTitle->Characters->{Text} = "US T-Bond";
-
- # Set up daily statistics
- $Open = $Bars[0][1];
- $High = $Sheet->Evaluate("MAX(C:C)");
- $Low = $Sheet->Evaluate("MIN(D:D)");
- $Close = $Bars[$#Bars][4];
-
-The with() function partially mimics the Visual Basic With statement,
-but allows only property assignments. It's a convenient shortcut for
-this:
-
- { # open new scope
- my $Axis = $Chart->Axes(xlValue);
- $Axis->{HasMajorGridlines} = 1;
- $Axis->{HasMinorGridlines} = 1;
- # etc ...
- }
-
-The C<$High> and C<$Low> for the day are needed to determine the
-minimum and maximum scaling levels. MIN and MAX are spreadsheet
-functions, and aren't automatically available as methods. However,
-Excel provides an Evaluate() method to calculate arbitrary spreadsheet
-functions, so we can use that.
-
-We want the chart to show major gridlines at every fourth tick and
-minor gridlines at every second tick. The minimum and maximum are
-chosen to be whatever multiples of 1/16 we need to do that.
-
- # Change tickmark spacing from decimal to fractional
- with($Chart->Axes(xlValue),
- HasMajorGridlines => 1,
- HasMinorGridlines => 1,
- MajorUnit => 1/8,
- MinorUnit => 1/16,
- MinimumScale => int($Low*16)/16,
- MaximumScale => int($High*16+1)/16
- );
-
- # Fat candles with only 5% gaps
- $Chart->ChartGroups(1)->{GapWidth} = 5;
-
- sub RGB { $_[0] | ($_[1] >> 8) | ($_[2] >> 16) }
-
- # White background with a solid border
-
- $Chart->PlotArea->Border->{LineStyle} = xlContinuous;
- $Chart->PlotArea->Border->{Color} = RGB(0,0,0);
- $Chart->PlotArea->Interior->{Color} = RGB(255,255,255);
-
- # Add 1 hour moving average of the Close series
- my $MovAvg = $Chart->SeriesCollection(4)->Trendlines
- ->Add({Type => xlMovingAvg, Period => 4});
- $MovAvg->Border->{Color} = RGB(255,0,0);
-
-Now the finished workbook can be saved to disk as
-F<i:\tmp\tpj\data.xls>. That file most likely still exists from when the
-program ran yesterday, so we'll remove it. (Otherwise, Excel would pop
-up a dialog with a warning, because the SaveAs() method doesn't like
-to overwrite files.)
-
-
- # Save workbook to file my $Filename = 'i:\tmp\tpj\data.xls';
- unlink $Filename if -f $Filename;
- $Book->SaveAs($Filename);
- $Book->Close;
-
-=head2 ACTIVEX DATA OBJECTS
-
-Mary stores the daily prices in her T-bonds database, keeping the data
-for the different contracts in separate tables. After creating an ADO
-(ActiveX Data Object) connection to the database, she tries to connect
-a record set to the table for the current contract. If this fails, she
-assumes that the table doesn't exists yet and tries to create it:
-
- use Win32::OLE::Const 'Microsoft ActiveX Data Objects';
-
- my $Connection = Win32::OLE->new('ADODB.Connection');
- my $Recordset = Win32::OLE->new('ADODB.Recordset');
- $Connection->Open('T-Bonds');
-
- # Open a record set for the table of this contract
- {
- local $Win32::OLE::Warn = 0;
- $Recordset->Open($Contract, $Connection, adOpenKeyset,
- adLockOptimistic, adCmdTable);
- }
-
- # Create table and index if it doesn't exist yet
- if (Win32::OLE->LastError) {
- $Connection->Execute(<<"SQL");
- CREATE TABLE $Contract
- (
- Day DATETIME,
- Open DOUBLE, High DOUBLE, Low DOUBLE, Close DOUBLE
- )
- SQL
- $Connection->Execute(<<"SQL");
- CREATE INDEX $Contract
- ON $Contract (Day) WITH PRIMARY
- SQL
- $Recordset->Open($Contract, $Connection, adOpenKeyset,
- adLockOptimistic, adCmdTable);
- }
-
-C<$Win32::OLE::Warn> is temporarily set to zero, so that if
-C<$Recordset->Open> fails, the failure will be recorded silently without
-terminating the program. C<Win32::OLE->LastError> shows whether the Open
-failed or not. C<LastError> returns the OLE error code in a numeric
-context and the OLE error message in a string context, just like
-Perl's C<$!> variable.
-
-Now Mary can add today's data:
-
- # Add new record to table
- use Win32::OLE::Variant;
- $Win32::OLE::Variant::LCID = $Win32::OLE::LCID;
-
- my $Fields = [qw(Day Open High Low Close)];
- my $Values = [Variant(VT_DATE, $Day),
- $Open, $High, $Low, $Close];
-
-Mary uses the Win32::OLE::Variant module to store C<$Day> as a date
-instead of a mere string. She wants to make sure that it's stored as
-an American-style date, so in the third line shown here she sets the
-locale ID of the Win32::OLE::Variant module to match the Win32::OLE
-module. (C<$Win32::OLE::LCID> had been set earlier to English, since
-that's what the Chicago Board of Trade uses.)
-
- {
- local $Win32::OLE::Warn = 0;
- $Recordset->AddNew($Fields, $Values);
- }
-
- # Replace existing record
- if (Win32::OLE->LastError) {
- $Recordset->CancelUpdate;
- $Recordset->Close;
- $Recordset->Open(<<"SQL", $Connection, adOpenDynamic);
- SELECT * FROM $Contract
- WHERE Day = #$Day#
- SQL
- $Recordset->Update($Fields, $Values);
- }
-
- $Recordset->Close;
- $Connection->Close;
-
-The program expects to be able to add a new record to the table. It
-fails if a record for this date already exists, because the Day field
-is the primary index and therefore must be unique. If an error occurs,
-the update operation started by AddNew() must first be cancelled with
-C<< $Recordset->CancelUpdate >>; otherwise the record set won't close.
-
-=head2 LOTUS NOTES
-
-Now Mary can use Lotus Notes to mail updates to all her customers
-interested in the T-bond data. (Lotus Notes doesn't provide its
-constants in the OLE type library, so Mary had to determine them by
-playing around with LotusScript.) The actual task is quite simple: A
-Notes session must be started, the mail database must be opened and
-the mail message must be created. The body of the message is created
-as a rich text field, which lets her mix formatted text with object
-attachments.
-
-In her program, Mary extracts the email addresses from her customer
-database and sends separate message to each. Here, we've simplified it
-somewhat.
-
- sub EMBED_ATTACHMENT {1454;} # from LotusScript
-
- my $Notes = Win32::OLE->new('Notes.NotesSession');
- my $Database = $Notes->GetDatabase('', '');
- $Database->OpenMail;
- my $Document = $Database->CreateDocument;
-
- $Document->{Form} = 'Memo';
- $Document->{SendTo} = ['Jon Orwant >orwant@tpj.com>',
- 'Jan Dubois >jan.dubois@ibm.net>'];
- $Document->{Subject} = "US T-Bonds Chart for $Day";
-
- my $Body = $Document->CreateRichtextItem('Body');
- $Body->AppendText(<<"EOT");
- I\'ve attached the latest US T-Bond data and chart for $Day.
- The daily statistics were:
-
- \tOpen\t$Open
- \tHigh\t$High
- \tLow\t$Low
- \tClose\t$Close
-
- Kind regards,
-
- Mary
- EOT
-
- $Body->EmbedObject(EMBED_ATTACHMENT, '', $Filename);
-
- $Document->Send(0);
-
-=head1 VARIANTS
-
-In this final section, I'll talk about Variants, which are the data
-types that you use to talk to OLE objects. We talked about this line
-earlier:
-
- my $Values = [Variant(VT_DATE, $Day),
- $Open, $High, $Low, $Close];
-
-Here, the Variant() function creates a Variant object, of type C<VT_DATE>
-and with the value C<$Day>. Variants are similar in many ways to Perl
-scalars. Arguments to OLE methods are transparently converted from
-their internal Perl representation to Variants and back again by the
-Win32::OLE module.
-
-OLE automation uses a generic C<VARIANT> data type to pass
-parameters. This data type contains type information in addition to
-the actual data value. Only the following data types are valid for OLE
-automation:
-
- B<Data Type Meaning>
- VT_EMPTY Not specified
- VT_NULL Null
- VT_I2 2 byte signed integer
- VT_I4 4 byte signed integer
- VT_R4 4 byte real
- VT_R8 8 byte real
- VT_CY Currency
- VT_DATE Date
- VT_BSTR Unicode string
- VT_DISPATCH OLE automation interface
- VT_ERROR Error
- VT_BOOL Boolean
- VT_VARIANT (only valid with VT_BYREF)
- VT_UNKNOWN Generic COM interface
- VT_UI1 Unsigned character
-
-The following two flags can also be used:
-
- VT_ARRAY Array of values
- VT_BYREF Pass by reference (instead of by value)
-
-B<The Perl to Variant transformation.> The following conversions are
-performed automatically whenever a Perl value must be translated into
-a Variant:
-
- Perl value Variant
- Integer values VT_I4
- Real values VT_R8
- Strings VT_BSTR
- undef VT_ERROR (DISP_E_PARAMNOTFOUND)
- Array reference VT_VARIANT | VT_ARRAY
- Win32::OLE object VT_DISPATCH
- Win32::OLE::Variant object Type of the Variant object
-
-What if your Perl value is a list of lists? Those can be irregularly
-shaped in Perl; that is, the subsidiary lists needn't have the same
-number of elements. In this case, the structure will be converted to a
-"rectangular" C<SAFEARRAY> of Variants, with unused slots set to
-C<VT_EMPTY>. Consider this Perl 2-D array:
-
- [ ["Perl" ], # one element
- [1, 3.1215, undef] # three elements
- ]
-
-This will be translated to a 2 by 3 C<SAFEARRAY> that looks like this:
-
- VT_BSTR("Perl") VT_EMPTY VT_EMPTY
- VT_I4(1) VT_R8(3.1415) VT_ERROR(DISP_E_PARAMNOTFOUND)
-
-B<The Variant To Perl Transformation.> Automatic conversion from Variants
-to Perl values happens as follows:
-
- Variant Perl value
- VT_BOOL, VT_ERROR Integer
- VT_UI1, VT_I2, VT_I4 Integer
- VT_R4, VT_R8 Float value
- VT_BSTR String
- VT_DISPATCH Win32::OLE object
-
-B<The Win32::OLE::Variant module.> This module provides access to the
-Variant data type, which gives you more control over how these
-arguments to OLE methods are encoded. (This is rarely necessary if you
-have a good grasp of the default conversion rules.) A Variant object
-can be created with the C<< Win32::OLE::Variant->new >> method or the
-equivalent Variant() function:
-
- use Win32::OLE::Variant;
- my $var1 = Win32::OLE::Variant->new(VT_DATE, 'Jan 1,1970');
- my $var2 = Variant(VT_BSTR, 'This is an Unicode string');
-
-Several methods let you inspect and manipulate Variant objects: The
-Type() and Value() methods return the variant type and value; the As()
-method returns the value after converting it to a different variant
-type; ChangeType() coerces the Variant into a different type; and
-Unicode() returns the value of a Variant object as an object of the
-Unicode::String class.
-
-These conversions are more interesting if they can be applied directly
-to the return value of an OLE method call without first mutilating the
-value with default conversions. This is possible with the following
-trick:
-
- my $RetVal = Variant(VT_EMPTY, undef);
- $Object->Dispatch($Method, $RetVal, @Arguments);
-
-Normally, you wouldn't call Dispatch() directly; it's executed
-implicitly by either AUTOLOAD() or Invoke(). If Dispatch() realizes
-that the return value is already a Win32::OLE::Variant object, the
-return value is not translated into a Perl representation but rather
-copied verbatim into the Variant object.
-
-Whenever a Win32::OLE::Variant object is used in a numeric or string
-context it is automatically converted into the corresponding format.
-
- printf "Number: %f and String: %s\n",
- $Var, $Var;
-
-This is equivalent to:
-
- printf "Number: %f and String: %s\n",
- $Var->As(VT_R8), $Var->As(VT_BSTR);
-
-For methods that modify their arguments, you need to use the C<VT_BYREF>
-flag. This lets you create number and string Variants that can be
-modified by OLE methods. Here, Corel's GetSize() method takes two
-integers and stores the C<x> and C<y> dimensions in them:
-
- my $x = Variant( VT_I4 | VT_BYREF, 0);
- my $y = Variant( VT_I4 | VT_BYREF, 0);
- $Corel->GetSize($x, $y);
-
-C<VT_BYREF> support for other Variant types might appear in future
-releases of Win32::OLE.
-
-=head1 FURTHER INFORMATION
-
-=head2 DOCUMENTATION AND EXAMPLE CODE
-
-More information about the OLE modules can be found in the
-documentation bundled with Win32::OLE. The distribution also contains
-other code samples.
-
-The object model for Microsoft Office applications can be found in the
-Visual Basic Reference for Microsoft Access, Excel, Word, or
-PowerPoint. These help files are not installed by default, but they
-can be added later by rerunning F<setup.exe> and choosing I<custom
-setup>. The object model for Microsoft Outlook can be found on the
-Microsoft Office Developer Forum at:
-http://www.microsoft.com/OutlookDev/.
-
-Information about the LotusScript object model can be found at:
-http://www.lotus.com/products/lotusscript.nsf.
-
-=head2 OLE AUTOMATION ON OTHER PLATFORMS
-
-Microsoft also makes OLE technology available for the Mac. DCOM is
-already included in Windows NT 4.0 and can be downloaded for Windows
-95. MVS and some Unix systems can use EntireX to get OLE
-functionality; see
-http://www.softwareag.com/corporat/solutions/entirex/entirex.htm.
-
-=head1 COPYRIGHT
-
-Copyright 1998 I<The Perl Journal>. http://www.tpj.com
-
-This article originally appeared in I<The Perl Journal> #10. It
-appears courtesy of Jon Orwant and I<The Perl Journal>. This document
-may be distributed under the same terms as Perl itself.
diff --git a/Master/tlpkg/tlperl/site/lib/Win32/OLE/TypeInfo.pm b/Master/tlpkg/tlperl/site/lib/Win32/OLE/TypeInfo.pm
deleted file mode 100644
index d95399c1e29..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Win32/OLE/TypeInfo.pm
+++ /dev/null
@@ -1,389 +0,0 @@
-# This module is still experimental and intentionally undocumented.
-# If you don't know why it is here, then you should probably not use it.
-
-package Win32::OLE::TypeInfo;
-
-use strict;
-use vars qw(@ISA @EXPORT @EXPORT_OK);
-use vars qw(@VT %TYPEFLAGS @TYPEKIND %IMPLTYPEFLAGS %PARAMFLAGS
- %FUNCFLAGS @CALLCONV @FUNCKIND %INVOKEKIND %VARFLAGS
- %LIBFLAGS @SYSKIND);
-
-use Exporter;
-@ISA = qw(Exporter);
-
-@EXPORT = qw(
- VT_EMPTY VT_NULL VT_I2 VT_I4 VT_R4 VT_R8 VT_CY VT_DATE
- VT_BSTR VT_DISPATCH VT_ERROR VT_BOOL VT_VARIANT VT_UNKNOWN
- VT_DECIMAL VT_I1 VT_UI1 VT_UI2 VT_UI4 VT_I8 VT_UI8 VT_INT
- VT_UINT VT_VOID VT_HRESULT VT_PTR VT_SAFEARRAY VT_CARRAY
- VT_USERDEFINED VT_LPSTR VT_LPWSTR VT_FILETIME VT_BLOB
- VT_STREAM VT_STORAGE VT_STREAMED_OBJECT VT_STORED_OBJECT
- VT_BLOB_OBJECT VT_CF VT_CLSID VT_VECTOR VT_ARRAY VT_BYREF
- VT_RESERVED VT_ILLEGAL VT_ILLEGALMASKED VT_TYPEMASK
-
- TYPEFLAG_FAPPOBJECT TYPEFLAG_FCANCREATE TYPEFLAG_FLICENSED
- TYPEFLAG_FPREDECLID TYPEFLAG_FHIDDEN TYPEFLAG_FCONTROL
- TYPEFLAG_FDUAL TYPEFLAG_FNONEXTENSIBLE TYPEFLAG_FOLEAUTOMATION
- TYPEFLAG_FRESTRICTED TYPEFLAG_FAGGREGATABLE TYPEFLAG_FREPLACEABLE
- TYPEFLAG_FDISPATCHABLE TYPEFLAG_FREVERSEBIND
-
- TKIND_ENUM TKIND_RECORD TKIND_MODULE TKIND_INTERFACE TKIND_DISPATCH
- TKIND_COCLASS TKIND_ALIAS TKIND_UNION TKIND_MAX
-
- IMPLTYPEFLAG_FDEFAULT IMPLTYPEFLAG_FSOURCE IMPLTYPEFLAG_FRESTRICTED
- IMPLTYPEFLAG_FDEFAULTVTABLE
-
- PARAMFLAG_NONE PARAMFLAG_FIN PARAMFLAG_FOUT PARAMFLAG_FLCID
- PARAMFLAG_FRETVAL PARAMFLAG_FOPT PARAMFLAG_FHASDEFAULT
-
- FUNCFLAG_FRESTRICTED FUNCFLAG_FSOURCE FUNCFLAG_FBINDABLE
- FUNCFLAG_FREQUESTEDIT FUNCFLAG_FDISPLAYBIND FUNCFLAG_FDEFAULTBIND
- FUNCFLAG_FHIDDEN FUNCFLAG_FUSESGETLASTERROR FUNCFLAG_FDEFAULTCOLLELEM
- FUNCFLAG_FUIDEFAULT FUNCFLAG_FNONBROWSABLE FUNCFLAG_FREPLACEABLE
- FUNCFLAG_FIMMEDIATEBIND
-
- CC_FASTCALL CC_CDECL CC_MSCPASCAL CC_PASCAL CC_MACPASCAL CC_STDCALL
- CC_FPFASTCALL CC_SYSCALL CC_MPWCDECL CC_MPWPASCAL CC_MAX
-
- INVOKE_FUNC INVOKE_PROPERTYGET INVOKE_PROPERTYPUT INVOKE_PROPERTYPUTREF
-
- VARFLAG_FREADONLY VARFLAG_FSOURCE VARFLAG_FBINDABLE VARFLAG_FREQUESTEDIT
- VARFLAG_FDISPLAYBIND VARFLAG_FDEFAULTBIND VARFLAG_FHIDDEN VARFLAG_FRESTRICTED
- VARFLAG_FDEFAULTCOLLELEM VARFLAG_FUIDEFAULT VARFLAG_FNONBROWSABLE
- VARFLAG_FREPLACEABLE VARFLAG_FIMMEDIATEBIND
-
- LIBFLAG_FRESTRICTED LIBFLAG_FCONTROL LIBFLAG_FHIDDEN
- SYS_WIN16 SYS_WIN32 SYS_MAC
-
- FUNC_VIRTUAL FUNC_PUREVIRTUAL FUNC_NONVIRTUAL FUNC_STATIC FUNC_DISPATCH
-
- @VT %TYPEFLAGS @TYPEKIND %IMPLTYPEFLAGS %PARAMFLAGS
- %FUNCFLAGS @CALLCONV @FUNCKIND %INVOKEKIND %VARFLAGS %LIBFLAGS @SYSKIND
-);
-
-# Lib Flags
-# ---------
-
-sub LIBFLAG_FRESTRICTED () { 0x01; }
-sub LIBFLAG_FCONTROL () { 0x02; }
-sub LIBFLAG_FHIDDEN () { 0x04; }
-
-$LIBFLAGS{LIBFLAG_FRESTRICTED()} = LIBFLAG_FRESTRICTED;
-$LIBFLAGS{LIBFLAG_FCONTROL()} = LIBFLAG_FCONTROL;
-$LIBFLAGS{LIBFLAG_FHIDDEN()} = LIBFLAG_FHIDDEN;
-
-# Sys Kind
-# --------
-
-sub SYS_WIN16 () { 0; }
-sub SYS_WIN32 () { SYS_WIN16() + 1; }
-sub SYS_MAC () { SYS_WIN32() + 1; }
-
-$SYSKIND[SYS_WIN16] = 'SYS_WIN16';
-$SYSKIND[SYS_WIN32] = 'SYS_WIN32';
-$SYSKIND[SYS_MAC] = 'SYS_MAC';
-
-# Type Flags
-# ----------
-
-sub TYPEFLAG_FAPPOBJECT () { 0x1; }
-sub TYPEFLAG_FCANCREATE () { 0x2; }
-sub TYPEFLAG_FLICENSED () { 0x4; }
-sub TYPEFLAG_FPREDECLID () { 0x8; }
-sub TYPEFLAG_FHIDDEN () { 0x10; }
-sub TYPEFLAG_FCONTROL () { 0x20; }
-sub TYPEFLAG_FDUAL () { 0x40; }
-sub TYPEFLAG_FNONEXTENSIBLE () { 0x80; }
-sub TYPEFLAG_FOLEAUTOMATION () { 0x100; }
-sub TYPEFLAG_FRESTRICTED () { 0x200; }
-sub TYPEFLAG_FAGGREGATABLE () { 0x400; }
-sub TYPEFLAG_FREPLACEABLE () { 0x800; }
-sub TYPEFLAG_FDISPATCHABLE () { 0x1000; }
-sub TYPEFLAG_FREVERSEBIND () { 0x2000; }
-
-$TYPEFLAGS{TYPEFLAG_FAPPOBJECT()} = TYPEFLAG_FAPPOBJECT;
-$TYPEFLAGS{TYPEFLAG_FCANCREATE()} = TYPEFLAG_FCANCREATE;
-$TYPEFLAGS{TYPEFLAG_FLICENSED()} = TYPEFLAG_FLICENSED;
-$TYPEFLAGS{TYPEFLAG_FPREDECLID()} = TYPEFLAG_FPREDECLID;
-$TYPEFLAGS{TYPEFLAG_FHIDDEN()} = TYPEFLAG_FHIDDEN;
-$TYPEFLAGS{TYPEFLAG_FCONTROL()} = TYPEFLAG_FCONTROL;
-$TYPEFLAGS{TYPEFLAG_FDUAL()} = TYPEFLAG_FDUAL;
-$TYPEFLAGS{TYPEFLAG_FNONEXTENSIBLE()} = TYPEFLAG_FNONEXTENSIBLE;
-$TYPEFLAGS{TYPEFLAG_FOLEAUTOMATION()} = TYPEFLAG_FOLEAUTOMATION;
-$TYPEFLAGS{TYPEFLAG_FRESTRICTED()} = TYPEFLAG_FRESTRICTED;
-$TYPEFLAGS{TYPEFLAG_FAGGREGATABLE()} = TYPEFLAG_FAGGREGATABLE;
-$TYPEFLAGS{TYPEFLAG_FREPLACEABLE()} = TYPEFLAG_FREPLACEABLE;
-$TYPEFLAGS{TYPEFLAG_FDISPATCHABLE()} = TYPEFLAG_FDISPATCHABLE;
-$TYPEFLAGS{TYPEFLAG_FREVERSEBIND()} = TYPEFLAG_FREVERSEBIND;
-
-# Type Kind
-# ---------
-
-sub TKIND_ENUM () { 0; }
-sub TKIND_RECORD () { TKIND_ENUM() + 1; }
-sub TKIND_MODULE () { TKIND_RECORD() + 1; }
-sub TKIND_INTERFACE () { TKIND_MODULE() + 1; }
-sub TKIND_DISPATCH () { TKIND_INTERFACE() + 1; }
-sub TKIND_COCLASS () { TKIND_DISPATCH() + 1; }
-sub TKIND_ALIAS () { TKIND_COCLASS() + 1; }
-sub TKIND_UNION () { TKIND_ALIAS() + 1; }
-sub TKIND_MAX () { TKIND_UNION() + 1; }
-
-$TYPEKIND[TKIND_ENUM] = 'TKIND_ENUM';
-$TYPEKIND[TKIND_RECORD] = 'TKIND_RECORD';
-$TYPEKIND[TKIND_MODULE] = 'TKIND_MODULE';
-$TYPEKIND[TKIND_INTERFACE] = 'TKIND_INTERFACE';
-$TYPEKIND[TKIND_DISPATCH] = 'TKIND_DISPATCH';
-$TYPEKIND[TKIND_COCLASS] = 'TKIND_COCLASS';
-$TYPEKIND[TKIND_ALIAS] = 'TKIND_ALIAS';
-$TYPEKIND[TKIND_UNION] = 'TKIND_UNION';
-
-# Implemented Type Flags
-# ----------------------
-
-sub IMPLTYPEFLAG_FDEFAULT () { 0x1; }
-sub IMPLTYPEFLAG_FSOURCE () { 0x2; }
-sub IMPLTYPEFLAG_FRESTRICTED () { 0x4; }
-sub IMPLTYPEFLAG_FDEFAULTVTABLE () { 0x800; }
-
-$IMPLTYPEFLAGS{IMPLTYPEFLAG_FDEFAULT()} = IMPLTYPEFLAG_FDEFAULT;
-$IMPLTYPEFLAGS{IMPLTYPEFLAG_FSOURCE()} = IMPLTYPEFLAG_FSOURCE;
-$IMPLTYPEFLAGS{IMPLTYPEFLAG_FRESTRICTED()} = IMPLTYPEFLAG_FRESTRICTED;
-$IMPLTYPEFLAGS{IMPLTYPEFLAG_FDEFAULTVTABLE()} = IMPLTYPEFLAG_FDEFAULTVTABLE;
-
-# Parameter Flags
-# ---------------
-
-sub PARAMFLAG_NONE () { 0; }
-sub PARAMFLAG_FIN () { 0x1; }
-sub PARAMFLAG_FOUT () { 0x2; }
-sub PARAMFLAG_FLCID () { 0x4; }
-sub PARAMFLAG_FRETVAL () { 0x8; }
-sub PARAMFLAG_FOPT () { 0x10; }
-sub PARAMFLAG_FHASDEFAULT () { 0x20; }
-
-$PARAMFLAGS{PARAMFLAG_NONE()} = PARAMFLAG_NONE;
-$PARAMFLAGS{PARAMFLAG_FIN()} = PARAMFLAG_FIN;
-$PARAMFLAGS{PARAMFLAG_FOUT()} = PARAMFLAG_FOUT;
-$PARAMFLAGS{PARAMFLAG_FLCID()} = PARAMFLAG_FLCID;
-$PARAMFLAGS{PARAMFLAG_FRETVAL()} = PARAMFLAG_FRETVAL;
-$PARAMFLAGS{PARAMFLAG_FOPT()} = PARAMFLAG_FOPT;
-$PARAMFLAGS{PARAMFLAG_FHASDEFAULT()} = PARAMFLAG_FHASDEFAULT;
-
-# Function Flags
-# --------------
-
-sub FUNCFLAG_FRESTRICTED () { 0x1; }
-sub FUNCFLAG_FSOURCE () { 0x2; }
-sub FUNCFLAG_FBINDABLE () { 0x4; }
-sub FUNCFLAG_FREQUESTEDIT () { 0x8; }
-sub FUNCFLAG_FDISPLAYBIND () { 0x10; }
-sub FUNCFLAG_FDEFAULTBIND () { 0x20; }
-sub FUNCFLAG_FHIDDEN () { 0x40; }
-sub FUNCFLAG_FUSESGETLASTERROR () { 0x80; }
-sub FUNCFLAG_FDEFAULTCOLLELEM () { 0x100; }
-sub FUNCFLAG_FUIDEFAULT () { 0x200; }
-sub FUNCFLAG_FNONBROWSABLE () { 0x400; }
-sub FUNCFLAG_FREPLACEABLE () { 0x800; }
-sub FUNCFLAG_FIMMEDIATEBIND () { 0x1000; }
-
-$FUNCFLAGS{FUNCFLAG_FRESTRICTED()} = FUNCFLAG_FRESTRICTED;
-$FUNCFLAGS{FUNCFLAG_FSOURCE()} = FUNCFLAG_FSOURCE;
-$FUNCFLAGS{FUNCFLAG_FBINDABLE()} = FUNCFLAG_FBINDABLE;
-$FUNCFLAGS{FUNCFLAG_FREQUESTEDIT()} = FUNCFLAG_FREQUESTEDIT;
-$FUNCFLAGS{FUNCFLAG_FDISPLAYBIND()} = FUNCFLAG_FDISPLAYBIND;
-$FUNCFLAGS{FUNCFLAG_FDEFAULTBIND()} = FUNCFLAG_FDEFAULTBIND;
-$FUNCFLAGS{FUNCFLAG_FHIDDEN()} = FUNCFLAG_FHIDDEN;
-$FUNCFLAGS{FUNCFLAG_FUSESGETLASTERROR()} = FUNCFLAG_FUSESGETLASTERROR;
-$FUNCFLAGS{FUNCFLAG_FDEFAULTCOLLELEM()} = FUNCFLAG_FDEFAULTCOLLELEM;
-$FUNCFLAGS{FUNCFLAG_FUIDEFAULT()} = FUNCFLAG_FUIDEFAULT;
-$FUNCFLAGS{FUNCFLAG_FNONBROWSABLE()} = FUNCFLAG_FNONBROWSABLE;
-$FUNCFLAGS{FUNCFLAG_FREPLACEABLE()} = FUNCFLAG_FREPLACEABLE;
-$FUNCFLAGS{FUNCFLAG_FIMMEDIATEBIND()} = FUNCFLAG_FIMMEDIATEBIND;
-
-# Calling conventions
-# -------------------
-
-sub CC_FASTCALL () { 0; }
-sub CC_CDECL () { 1; }
-sub CC_MSCPASCAL () { CC_CDECL() + 1; }
-sub CC_PASCAL () { CC_MSCPASCAL; }
-sub CC_MACPASCAL () { CC_PASCAL() + 1; }
-sub CC_STDCALL () { CC_MACPASCAL() + 1; }
-sub CC_FPFASTCALL () { CC_STDCALL() + 1; }
-sub CC_SYSCALL () { CC_FPFASTCALL() + 1; }
-sub CC_MPWCDECL () { CC_SYSCALL() + 1; }
-sub CC_MPWPASCAL () { CC_MPWCDECL() + 1; }
-sub CC_MAX () { CC_MPWPASCAL() + 1; }
-
-$CALLCONV[CC_FASTCALL] = 'CC_FASTCALL';
-$CALLCONV[CC_CDECL] = 'CC_CDECL';
-$CALLCONV[CC_PASCAL] = 'CC_PASCAL';
-$CALLCONV[CC_MACPASCAL] = 'CC_MACPASCAL';
-$CALLCONV[CC_STDCALL] = 'CC_STDCALL';
-$CALLCONV[CC_FPFASTCALL] = 'CC_FPFASTCALL';
-$CALLCONV[CC_SYSCALL] = 'CC_SYSCALL';
-$CALLCONV[CC_MPWCDECL] = 'CC_MPWCDECL';
-$CALLCONV[CC_MPWPASCAL] = 'CC_MPWPASCAL';
-
-# Function Kind
-# -------------
-
-sub FUNC_VIRTUAL () { 0; }
-sub FUNC_PUREVIRTUAL () { FUNC_VIRTUAL() + 1; }
-sub FUNC_NONVIRTUAL () { FUNC_PUREVIRTUAL() + 1; }
-sub FUNC_STATIC () { FUNC_NONVIRTUAL() + 1; }
-sub FUNC_DISPATCH () { FUNC_STATIC() + 1; }
-
-$FUNCKIND[FUNC_VIRTUAL] = 'FUNC_VIRTUAL';
-$FUNCKIND[FUNC_PUREVIRTUAL] = 'FUNC_PUREVIRTUAL';
-$FUNCKIND[FUNC_NONVIRTUAL] = 'FUNC_NONVIRTUAL';
-$FUNCKIND[FUNC_STATIC] = 'FUNC_STATIC';
-$FUNCKIND[FUNC_DISPATCH] = 'FUNC_DISPATCH';
-
-# Invoke Kind
-# -----------
-
-sub INVOKE_FUNC () { 1; }
-sub INVOKE_PROPERTYGET () { 2; }
-sub INVOKE_PROPERTYPUT () { 4; }
-sub INVOKE_PROPERTYPUTREF () { 8; }
-
-$INVOKEKIND{INVOKE_FUNC()} = INVOKE_FUNC;
-$INVOKEKIND{INVOKE_PROPERTYGET()} = INVOKE_PROPERTYGET;
-$INVOKEKIND{INVOKE_PROPERTYPUT()} = INVOKE_PROPERTYPUT;
-$INVOKEKIND{INVOKE_PROPERTYPUTREF()} = INVOKE_PROPERTYPUTREF;
-
-# Variable Flags
-# --------------
-
-sub VARFLAG_FREADONLY () { 0x1; }
-sub VARFLAG_FSOURCE () { 0x2; }
-sub VARFLAG_FBINDABLE () { 0x4; }
-sub VARFLAG_FREQUESTEDIT () { 0x8; }
-sub VARFLAG_FDISPLAYBIND () { 0x10; }
-sub VARFLAG_FDEFAULTBIND () { 0x20; }
-sub VARFLAG_FHIDDEN () { 0x40; }
-sub VARFLAG_FRESTRICTED () { 0x80; }
-sub VARFLAG_FDEFAULTCOLLELEM () { 0x100; }
-sub VARFLAG_FUIDEFAULT () { 0x200; }
-sub VARFLAG_FNONBROWSABLE () { 0x400; }
-sub VARFLAG_FREPLACEABLE () { 0x800; }
-sub VARFLAG_FIMMEDIATEBIND () { 0x1000; }
-
-$VARFLAGS{VARFLAG_FREADONLY()} = VARFLAG_FREADONLY;
-$VARFLAGS{VARFLAG_FSOURCE()} = VARFLAG_FSOURCE;
-$VARFLAGS{VARFLAG_FBINDABLE()} = VARFLAG_FBINDABLE;
-$VARFLAGS{VARFLAG_FREQUESTEDIT()} = VARFLAG_FREQUESTEDIT;
-$VARFLAGS{VARFLAG_FDISPLAYBIND()} = VARFLAG_FDISPLAYBIND;
-$VARFLAGS{VARFLAG_FDEFAULTBIND()} = VARFLAG_FDEFAULTBIND;
-$VARFLAGS{VARFLAG_FHIDDEN()} = VARFLAG_FHIDDEN;
-$VARFLAGS{VARFLAG_FRESTRICTED()} = VARFLAG_FRESTRICTED;
-$VARFLAGS{VARFLAG_FDEFAULTCOLLELEM()} = VARFLAG_FDEFAULTCOLLELEM;
-$VARFLAGS{VARFLAG_FUIDEFAULT()} = VARFLAG_FUIDEFAULT;
-$VARFLAGS{VARFLAG_FNONBROWSABLE()} = VARFLAG_FNONBROWSABLE;
-$VARFLAGS{VARFLAG_FREPLACEABLE()} = VARFLAG_FREPLACEABLE;
-$VARFLAGS{VARFLAG_FIMMEDIATEBIND()} = VARFLAG_FIMMEDIATEBIND;
-
-
-# Variant Types
-# -------------
-
-sub VT_EMPTY () { 0; }
-sub VT_NULL () { 1; }
-sub VT_I2 () { 2; }
-sub VT_I4 () { 3; }
-sub VT_R4 () { 4; }
-sub VT_R8 () { 5; }
-sub VT_CY () { 6; }
-sub VT_DATE () { 7; }
-sub VT_BSTR () { 8; }
-sub VT_DISPATCH () { 9; }
-sub VT_ERROR () { 10; }
-sub VT_BOOL () { 11; }
-sub VT_VARIANT () { 12; }
-sub VT_UNKNOWN () { 13; }
-sub VT_DECIMAL () { 14; }
-sub VT_I1 () { 16; }
-sub VT_UI1 () { 17; }
-sub VT_UI2 () { 18; }
-sub VT_UI4 () { 19; }
-sub VT_I8 () { 20; }
-sub VT_UI8 () { 21; }
-sub VT_INT () { 22; }
-sub VT_UINT () { 23; }
-sub VT_VOID () { 24; }
-sub VT_HRESULT () { 25; }
-sub VT_PTR () { 26; }
-sub VT_SAFEARRAY () { 27; }
-sub VT_CARRAY () { 28; }
-sub VT_USERDEFINED () { 29; }
-sub VT_LPSTR () { 30; }
-sub VT_LPWSTR () { 31; }
-sub VT_FILETIME () { 64; }
-sub VT_BLOB () { 65; }
-sub VT_STREAM () { 66; }
-sub VT_STORAGE () { 67; }
-sub VT_STREAMED_OBJECT () { 68; }
-sub VT_STORED_OBJECT () { 69; }
-sub VT_BLOB_OBJECT () { 70; }
-sub VT_CF () { 71; }
-sub VT_CLSID () { 72; }
-sub VT_VECTOR () { 0x1000; }
-sub VT_ARRAY () { 0x2000; }
-sub VT_BYREF () { 0x4000; }
-sub VT_RESERVED () { 0x8000; }
-sub VT_ILLEGAL () { 0xffff; }
-sub VT_ILLEGALMASKED () { 0xfff; }
-sub VT_TYPEMASK () { 0xfff; }
-
-$VT[VT_EMPTY] = 'VT_EMPTY';
-$VT[VT_NULL] = 'VT_NULL';
-$VT[VT_I2] = 'VT_I2';
-$VT[VT_I4] = 'VT_I4';
-$VT[VT_R4] = 'VT_R4';
-$VT[VT_R8] = 'VT_R8';
-$VT[VT_CY] = 'VT_CY';
-$VT[VT_DATE] = 'VT_DATE';
-$VT[VT_BSTR] = 'VT_BSTR';
-$VT[VT_DISPATCH] = 'VT_DISPATCH';
-$VT[VT_ERROR] = 'VT_ERROR';
-$VT[VT_BOOL] = 'VT_BOOL';
-$VT[VT_VARIANT] = 'VT_VARIANT';
-$VT[VT_UNKNOWN] = 'VT_UNKNOWN';
-$VT[VT_DECIMAL] = 'VT_DECIMAL';
-$VT[VT_I1] = 'VT_I1';
-$VT[VT_UI1] = 'VT_UI1';
-$VT[VT_UI2] = 'VT_UI2';
-$VT[VT_UI4] = 'VT_UI4';
-$VT[VT_I8] = 'VT_I8';
-$VT[VT_UI8] = 'VT_UI8';
-$VT[VT_INT] = 'VT_INT';
-$VT[VT_UINT] = 'VT_UINT';
-$VT[VT_VOID] = 'VT_VOID';
-$VT[VT_HRESULT] = 'VT_HRESULT';
-$VT[VT_PTR] = 'VT_PTR';
-$VT[VT_SAFEARRAY] = 'VT_SAFEARRAY';
-$VT[VT_CARRAY] = 'VT_CARRAY';
-$VT[VT_USERDEFINED] = 'VT_USERDEFINED';
-$VT[VT_LPSTR] = 'VT_LPSTR';
-$VT[VT_LPWSTR] = 'VT_LPWSTR';
-$VT[VT_FILETIME] = 'VT_FILETIME';
-$VT[VT_BLOB] = 'VT_BLOB';
-$VT[VT_STREAM] = 'VT_STREAM';
-$VT[VT_STORAGE] = 'VT_STORAGE';
-$VT[VT_STREAMED_OBJECT] = 'VT_STREAMED_OBJECT';
-$VT[VT_STORED_OBJECT] = 'VT_STORED_OBJECT';
-$VT[VT_BLOB_OBJECT] = 'VT_BLOB_OBJECT';
-$VT[VT_CF] = 'VT_CF';
-$VT[VT_CLSID] = 'VT_CLSID';
-$VT[VT_VECTOR] = 'VT_VECTOR';
-$VT[VT_ARRAY] = 'VT_ARRAY';
-$VT[VT_BYREF] = 'VT_BYREF';
-$VT[VT_RESERVED] = 'VT_RESERVED';
-$VT[VT_ILLEGAL] = 'VT_ILLEGAL';
-$VT[VT_ILLEGALMASKED] = 'VT_ILLEGALMASKED';
-$VT[VT_TYPEMASK] = 'VT_TYPEMASK';
-
-1;
diff --git a/Master/tlpkg/tlperl/site/lib/Win32/OLE/Variant.pm b/Master/tlpkg/tlperl/site/lib/Win32/OLE/Variant.pm
deleted file mode 100644
index 38fc6048209..00000000000
--- a/Master/tlpkg/tlperl/site/lib/Win32/OLE/Variant.pm
+++ /dev/null
@@ -1,577 +0,0 @@
-# The documentation is at the __END__
-
-package Win32::OLE::Variant;
-require Win32::OLE; # Make sure the XS bootstrap has been called
-
-use strict;
-use vars qw(@ISA @EXPORT @EXPORT_OK);
-
-use Exporter;
-@ISA = qw(Exporter);
-
-@EXPORT = qw(
- Variant
- VT_EMPTY VT_NULL VT_I2 VT_I4 VT_R4 VT_R8 VT_CY VT_DATE VT_BSTR
- VT_DISPATCH VT_ERROR VT_BOOL VT_VARIANT VT_UNKNOWN VT_DECIMAL VT_UI1
- VT_ARRAY VT_BYREF
- );
-
-@EXPORT_OK = qw(CP_ACP CP_OEMCP nothing nullstring);
-
-# Automation data types.
-sub VT_EMPTY {0;}
-sub VT_NULL {1;}
-sub VT_I2 {2;}
-sub VT_I4 {3;}
-sub VT_R4 {4;}
-sub VT_R8 {5;}
-sub VT_CY {6;}
-sub VT_DATE {7;}
-sub VT_BSTR {8;}
-sub VT_DISPATCH {9;}
-sub VT_ERROR {10;}
-sub VT_BOOL {11;}
-sub VT_VARIANT {12;}
-sub VT_UNKNOWN {13;}
-sub VT_DECIMAL {14;} # Officially not allowed in VARIANTARGs
-sub VT_UI1 {17;}
-
-sub VT_ARRAY {0x2000;}
-sub VT_BYREF {0x4000;}
-
-
-# For backward compatibility
-sub CP_ACP {0;} # ANSI codepage
-sub CP_OEMCP {1;} # OEM codepage
-
-use overload
- # '+' => 'Add', '-' => 'Sub', '*' => 'Mul', '/' => 'Div',
- '""' => sub {$_[0]->As(VT_BSTR)},
- '0+' => sub {$_[0]->As(VT_R8)},
- fallback => 1;
-
-sub Variant {
- return Win32::OLE::Variant->new(@_);
-}
-
-sub nothing {
- return Win32::OLE::Variant->new(VT_DISPATCH);
-}
-
-sub nullstring {
- return Win32::OLE::Variant->new(VT_BSTR);
-}
-
-1;
-
-__END__
-
-=head1 NAME
-
-Win32::OLE::Variant - Create and modify OLE VARIANT variables
-
-=head1 SYNOPSIS
-
- use Win32::OLE::Variant;
- my $var = Variant(VT_DATE, 'Jan 1,1970');
- $OleObject->{value} = $var;
- $OleObject->Method($var);
-
-
-=head1 DESCRIPTION
-
-The IDispatch interface used by the Perl OLE module uses a universal
-argument type called VARIANT. This is basically an object containing
-a data type and the actual data value. The data type is specified by
-the VT_xxx constants.
-
-=head2 Functions
-
-=over 8
-
-=item nothing()
-
-The nothing() function returns an empty VT_DISPATCH variant. It can be
-used to clear an object reference stored in a property
-
- use Win32::OLE::Variant qw(:DEFAULT nothing);
- # ...
- $object->{Property} = nothing;
-
-This has the same effect as the Visual Basic statement
-
- Set object.Property = Nothing
-
-The nothing() function is B<not> exported by default.
-
-=item nullstring()
-
-The nullstring() function returns a VT_BSTR variant with a NULL string
-pointer. This is B<not> the same as a VT_BSTR variant with an empty
-string "". The nullstring() value is the same as the vbNullString
-constant in Visual Basic.
-
-The nullstring() function is B<not> exported by default.
-
-=item Variant(TYPE, DATA)
-
-This is just a function alias of the C<Win32::OLE::Variant->new()>
-method (see below). This function is exported by default.
-
-=back
-
-=head2 Methods
-
-=over 8
-
-=item new(TYPE, DATA)
-
-This method returns a Win32::OLE::Variant object of the specified
-TYPE that contains the given DATA. The Win32::OLE::Variant object
-can be used to specify data types other than IV, NV or PV (which are
-supported transparently). See L<Variants> below for details.
-
-For VT_EMPTY and VT_NULL variants, the DATA argument may be omitted.
-For all non-VT_ARRAY variants DATA specifies the initial value.
-
-To create a SAFEARRAY variant, you have to specify the VT_ARRAY flag in
-addition to the variant base type of the array elements. In this cases
-DATA must be a list specifying the dimensions of the array. Each element
-can be either an element count (indices 0 to count-1) or an array
-reference pointing to the lower and upper array bounds of this dimension:
-
- my $Array = Win32::OLE::Variant->new(VT_ARRAY|VT_R8, [1,2], 2);
-
-This creates a 2-dimensional SAFEARRAY of doubles with 4 elements:
-(1,0), (1,1), (2,0) and (2,1).
-
-A special case is the creation of one-dimensional VT_UI1 arrays with
-a string DATA argument:
-
- my $String = Variant(VT_ARRAY|VT_UI1, "String");
-
-This creates a 6 element character array initialized to "String". For
-backward compatibility VT_UI1 with a string initializer automatically
-implies VT_ARRAY. The next line is equivalent to the previous example:
-
- my $String = Variant(VT_UI1, "String");
-
-If you really need a single character VT_UI1 variant, you have to create
-it using a numeric intializer:
-
- my $Char = Variant(VT_UI1, ord('A'));
-
-=item As(TYPE)
-
-C<As> converts the VARIANT to the new type before converting to a
-Perl value. This take the current LCID setting into account. For
-example a string might contain a ',' as the decimal point character.
-Using C<$variant->As(VT_R8)> will correctly return the floating
-point value.
-
-The underlying variant object is NOT changed by this method.
-
-=item ChangeType(TYPE)
-
-This method changes the type of the contained VARIANT in place. It
-returns the object itself, not the converted value.
-
-=item Copy([DIM])
-
-This method creates a copy of the object. If the original variant had
-the VT_BYREF bit set then the new object will contain a copy of the
-referenced data and not a reference to the same old data. The new
-object will not have the VT_BYREF bit set.
-
- my $Var = Variant(VT_I4|VT_ARRAY|VT_BYREF, [1,5], 3);
- my $Copy = $Var->Copy;
-
-The type of C<$Copy> is now VT_I4|VT_ARRAY and the value is a copy of
-the other SAFEARRAY. Changes to elements of C<$Var> will not be reflected
-in C<$Copy> and vice versa.
-
-The C<Copy> method can also be used to extract a single element of a
-VT_ARRAY | VT_VARIANT object. In this case the array indices must be
-specified as a list DIM:
-
- my $Int = $Var->Copy(1, 2);
-
-C<$Int> is now a VT_I4 Variant object containing the value of element (1,2).
-
-=item Currency([FORMAT[, LCID]])
-
-This method converts the VARIANT value into a formatted currency string. The
-FORMAT can be either an integer constant or a hash reference. Valid constants
-are 0 and LOCALE_NOUSEROVERRIDE. You get the value of LOCALE_NOUSEROVERRIDE
-from the Win32::OLE::NLS module:
-
- use Win32::OLE::NLS qw(:LOCALE);
-
-LOCALE_NOUSEROVERRIDE tells the method to use the system default currency
-format for the specified locale, disregarding any changes that might have
-been made through the control panel application.
-
-The hash reference could contain the following keys:
-
- NumDigits number of fractional digits
- LeadingZero whether to use leading zeroes in decimal fields
- Grouping size of each group of digits to the left of the decimal
- DecimalSep decimal separator string
- ThousandSep thousand separator string
- NegativeOrder see L<Win32::OLE::NLS/LOCALE_ICURRENCY>
- PositiveOrder see L<Win32::OLE::NLS/LOCALE_INEGCURR>
- CurrencySymbol currency symbol string
-
-For example:
-
- use Win32::OLE::Variant;
- use Win32::OLE::NLS qw(:DEFAULT :LANG :SUBLANG :DATE :TIME);
- my $lcidGerman = MAKELCID(MAKELANGID(LANG_GERMAN, SUBLANG_NEUTRAL));
- my $v = Variant(VT_CY, "-922337203685477.5808");
- print $v->Currency({CurrencySymbol => "Tuits"}, $lcidGerman), "\n";
-
-will print:
-
- -922.337.203.685.477,58 Tuits
-
-=item Date([FORMAT[, LCID]])
-
-Converts the VARIANT into a formatted date string. FORMAT can be either
-one of the following integer constants or a format string:
-
- LOCALE_NOUSEROVERRIDE system default date format for this locale
- DATE_SHORTDATE use the short date format (default)
- DATE_LONGDATE use the long date format
- DATE_YEARMONTH use the year/month format
- DATE_USE_ALT_CALENDAR use the alternate calendar, if one exists
- DATE_LTRREADING left-to-right reading order layout
- DATE_RTLREADING right-to left reading order layout
-
-The constants are available from the Win32::OLE::NLS module:
-
- use Win32::OLE::NLS qw(:LOCALE :DATE);
-
-The following elements can be used to construct a date format string.
-Characters must be specified exactly as given below (e.g. "dd" B<not> "DD").
-Spaces can be inserted anywhere between formatting codes, other verbatim
-text should be included in single quotes.
-
- d day of month
- dd day of month with leading zero for single-digit days
- ddd day of week: three-letter abbreviation (LOCALE_SABBREVDAYNAME)
- dddd day of week: full name (LOCALE_SDAYNAME)
- M month
- MM month with leading zero for single-digit months
- MMM month: three-letter abbreviation (LOCALE_SABBREVMONTHNAME)
- MMMM month: full name (LOCALE_SMONTHNAME)
- y year as last two digits
- yy year as last two digits with leading zero for years less than 10
- yyyy year represented by full four digits
- gg period/era string
-
-For example:
-
- my $v = Variant(VT_DATE, "April 1 99");
- print $v->Date(DATE_LONGDATE), "\n";
- print $v->Date("ddd',' MMM dd yy"), "\n";
-
-will print:
-
- Thursday, April 01, 1999
- Thu, Apr 01 99
-
-=item Dim()
-
-Returns a list of array bounds for a VT_ARRAY variant. The list contains
-an array reference for each dimension of the variant's SAFEARRAY. This
-reference points to an array containing the lower and upper bounds for
-this dimension. For example:
-
- my @Dim = $Var->Dim;
-
-Now C<@Dim> contains the following list: C<([1,5], [0,2])>.
-
-=item Get(DIM)
-
-For normal variants C<Get> returns the value of the variant, just like the
-C<Value> method. For VT_ARRAY variants C<Get> retrieves the value of a single
-array element. In this case C<DIM> must be a list of array indices. E.g.
-
- my $Val = $Var->Get(2,0);
-
-As a special case for one dimensional VT_UI1|VT_ARRAY variants the C<Get>
-method without arguments returns the character array as a Perl string.
-
- print $String->Get, "\n";
-
-=item IsNothing()
-
-Tests if the object is an empty VT_DISPATCH variant. See also nothing().
-
-=item IsNullString()
-
-Tests if the object is an empty VT_BSTR variant. See also nullstring().
-
-=item LastError()
-
-The use of the C<Win32::OLE::Variant->LastError()> method is deprecated.
-Please use the C<Win32::OLE->LastError()> class method instead.
-
-=item Number([FORMAT[, LCID]])
-
-This method converts the VARIANT value into a formatted number string. The
-FORMAT can be either an integer constant or a hash reference. Valid constants
-are 0 and LOCALE_NOUSEROVERRIDE. You get the value of LOCALE_NOUSEROVERRIDE
-from the Win32::OLE::NLS module:
-
- use Win32::OLE::NLS qw(:LOCALE);
-
-LOCALE_NOUSEROVERRIDE tells the method to use the system default number
-format for the specified locale, disregarding any changes that might have
-been made through the control panel application.
-
-The hash reference could contain the following keys:
-
- NumDigits number of fractional digits
- LeadingZero whether to use leading zeroes in decimal fields
- Grouping size of each group of digits to the left of the decimal
- DecimalSep decimal separator string
- ThousandSep thousand separator string
- NegativeOrder see L<Win32::OLE::NLS/LOCALE_INEGNUMBER>
-
-=item Put(DIM, VALUE)
-
-The C<Put> method is used to assign a new value to a variant. The value will
-be coerced into the current type of the variant. E.g.:
-
- my $Var = Variant(VT_I4, 42);
- $Var->Put(3.1415);
-
-This changes the value of the variant to C<3> because the type is VT_I4.
-
-For VT_ARRAY type variants the indices for each dimension of the contained
-SAFEARRAY must be specified in front of the new value:
-
- $Array->Put(1, 1, 2.7);
-
-It is also possible to assign values to *every* element of the SAFEARRAY at
-once using a single Put() method call:
-
- $Array->Put([[1,2], [3,4]]);
-
-In this case the argument to Put() must be an array reference and the
-dimensions of the Perl list-of-lists must match the dimensions of the
-SAFEARRAY exactly.
-
-The are a few special cases for one-dimensional VT_UI1 arrays: The VALUE
-can be specified as a string instead of a number. This will set the selected
-character to the first character of the string or to '\0' if the string was
-empty:
-
- my $String = Variant(VT_UI1|VT_ARRAY, "ABCDE");
- $String->Put(1, "123");
- $String->Put(3, ord('Z'));
- $String->Put(4, '');
-
-This will set the value of C<$String> to C<"A1CZ\0">. If the index is omitted
-then the string is copied to the value completely. The string is truncated
-if it is longer than the size of the VT_UI1 array. The result will be padded
-with '\0's if the string is shorter:
-
- $String->Put("String");
-
-Now C<$String> contains the value "Strin".
-
-C<Put> returns the Variant object itself so that multiple C<Put> calls can be
-chained together:
-
- $Array->Put(0,0,$First_value)->Put(0,1,$Another_value);
-
-=item Time([FORMAT[, LCID]])
-
-Converts the VARIANT into a formatted time string. FORMAT can be either
-one of the following integer constants or a format string:
-
- LOCALE_NOUSEROVERRIDE system default time format for this locale
- TIME_NOMINUTESORSECONDS don't use minutes or seconds
- TIME_NOSECONDS don't use seconds
- TIME_NOTIMEMARKER don't use a time marker
- TIME_FORCE24HOURFORMAT always use a 24-hour time format
-
-The constants are available from the Win32::OLE::NLS module:
-
- use Win32::OLE::NLS qw(:LOCALE :TIME);
-
-The following elements can be used to construct a time format string.
-Characters must be specified exactly as given below (e.g. "dd" B<not> "DD").
-Spaces can be inserted anywhere between formatting codes, other verbatim
-text should be included in single quotes.
-
- h hours; 12-hour clock
- hh hours with leading zero for single-digit hours; 12-hour clock
- H hours; 24-hour clock
- HH hours with leading zero for single-digit hours; 24-hour clock
- m minutes
- mm minutes with leading zero for single-digit minutes
- s seconds
- ss seconds with leading zero for single-digit seconds
- t one character time marker string, such as A or P
- tt multicharacter time marker string, such as AM or PM
-
-For example:
-
- my $v = Variant(VT_DATE, "April 1 99 2:23 pm");
- print $v->Time, "\n";
- print $v->Time(TIME_FORCE24HOURFORMAT|TIME_NOTIMEMARKER), "\n";
- print $v->Time("hh.mm.ss tt"), "\n";
-
-will print:
-
- 2:23:00 PM
- 14:23:00
- 02.23.00 PM
-
-=item Type()
-
-The C<Type> method returns the variant type of the contained VARIANT.
-
-=item Unicode()
-
-The C<Unicode> method returns a C<Unicode::String> object. This contains
-the BSTR value of the variant in network byte order. If the variant is
-not currently in VT_BSTR format then a VT_BSTR copy will be produced first.
-
-=item Value()
-
-The C<Value> method returns the value of the VARIANT as a Perl value. The
-conversion is performed in the same manner as all return values of
-Win32::OLE method calls are converted.
-
-=back
-
-=head2 Overloading
-
-The Win32::OLE::Variant package has overloaded the conversion to
-string and number formats. Therefore variant objects can be used in
-arithmetic and string operations without applying the C<Value>
-method first.
-
-=head2 Class Variables
-
-The Win32::OLE::Variant class used to have its own set of class variables
-like C<$CP>, C<$LCID> and C<$Warn>. In version 0.1003 and later of the
-Win32::OLE module these variables have been eliminated. Now the settings
-of Win32::OLE are used by the Win32::OLE::Variant module too. Please read
-the documentation of the C<Win32::OLE-&gt;Option> class method.
-
-
-=head2 Constants
-
-These constants are exported by default:
-
- VT_EMPTY
- VT_NULL
- VT_I2
- VT_I4
- VT_R4
- VT_R8
- VT_CY
- VT_DATE
- VT_BSTR
- VT_DISPATCH
- VT_ERROR
- VT_BOOL
- VT_VARIANT
- VT_UNKNOWN
- VT_DECIMAL
- VT_UI1
-
- VT_ARRAY
- VT_BYREF
-
-VT_DECIMAL is not on the official list of allowable OLE Automation
-datatypes. But even Microsoft ADO seems to sometimes return values
-of Recordset fields in VT_DECIMAL format.
-
-=head2 Variants
-
-A Variant is a data type that is used to pass data between OLE
-connections.
-
-The default behavior is to convert each perl scalar variable into
-an OLE Variant according to the internal perl representation.
-The following type correspondence holds:
-
- C type Perl type OLE type
- ------ --------- --------
- int IV VT_I4
- double NV VT_R8
- char * PV VT_BSTR
- void * ref to AV VT_ARRAY
- ? undef VT_ERROR
- ? Win32::OLE object VT_DISPATCH
-
-Note that VT_BSTR is a wide character or Unicode string. This presents a
-problem if you want to pass in binary data as a parameter as 0x00 is
-inserted between all the bytes in your data. The C<Variant()> method
-provides a solution to this. With Variants the script writer can specify
-the OLE variant type that the parameter should be converted to. Currently
-supported types are:
-
- VT_UI1 unsigned char
- VT_I2 signed int (2 bytes)
- VT_I4 signed int (4 bytes)
- VT_R4 float (4 bytes)
- VT_R8 float (8 bytes)
- VT_DATE OLE Date
- VT_BSTR OLE String
- VT_CY OLE Currency
- VT_BOOL OLE Boolean
-
-When VT_DATE and VT_CY objects are created, the input parameter is treated
-as a Perl string type, which is then converted to VT_BSTR, and finally to
-VT_DATE of VT_CY using the C<VariantChangeType()> OLE API function.
-See L<Win32::OLE/EXAMPLES> for how these types can be used.
-
-=head2 Variant arrays
-
-A variant can not only contain a single value but also a multi-dimensional
-array of values (called a SAFEARRAY). In this case the VT_ARRAY flag must
-be added to the base variant type, e.g. C<VT_I4 | VT_ARRAY> for an array of
-integers. The VT_EMPTY and VT_NULL types are invalid for SAFEARRAYs. It
-is possible to create an array of variants: C<VT_VARIANT | VT_ARRAY>. In this
-case each element of the array can have a different type (including VT_EMPTY
-and VT_NULL). The elements of a VT_VARIANT SAFEARRAY cannot have either of the
-VT_ARRAY or VT_BYREF flags set.
-
-The lower and upper bounds for each dimension can be specified separately.
-They do not have to have all the same lower bound (unlike Perl's arrays).
-
-=head2 Variants by reference
-
-Some OLE servers expect parameters passed by reference so that they
-can be changed in the method call. This allows methods to easily
-return multiple values. There is preliminary support for this in
-the Win32::OLE::Variant module:
-
- my $x = Variant(VT_I4|VT_BYREF, 0);
- my $y = Variant(VT_I4|VT_BYREF, 0);
- $Corel->GetSize($x, $y);
- print "Size is $x by $y\n";
-
-After the C<GetSize> method call C<$x> and C<$y> will be set to
-the respective sizes. They will still be variants. In the print
-statement the overloading converts them to string representation
-automatically.
-
-VT_BYREF is now supported for all variant types (including SAFEARRAYs).
-It can also be used to pass an OLE object by reference:
-
- my $Results = $App->CreateResultsObject;
- $Object->Method(Variant(VT_DISPATCH|VT_BYREF, $Results));
-
-=head1 AUTHORS/COPYRIGHT
-
-This module is part of the Win32::OLE distribution.
-
-=cut
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Cpanel/JSON/XS/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Cpanel/JSON/XS/.packlist
index 9cb00193a55..03d54eace51 100755
--- a/Master/tlpkg/tlperl/site/lib/auto/Cpanel/JSON/XS/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Cpanel/JSON/XS/.packlist
@@ -1,6 +1,6 @@
-C:\tlperl\bin\cpanel_json_xs
-C:\tlperl\bin\cpanel_json_xs.bat
-C:\tlperl\site\lib\Cpanel\JSON\XS.pm
-C:\tlperl\site\lib\Cpanel\JSON\XS\Boolean.pm
-C:\tlperl\site\lib\Cpanel\JSON\XS\Type.pm
-C:\tlperl\site\lib\auto\Cpanel\JSON\XS\XS.dll
+D:\tlperl\bin\cpanel_json_xs
+D:\tlperl\bin\cpanel_json_xs.bat
+D:\tlperl\site\lib\Cpanel\JSON\XS.pm
+D:\tlperl\site\lib\Cpanel\JSON\XS\Boolean.pm
+D:\tlperl\site\lib\Cpanel\JSON\XS\Type.pm
+D:\tlperl\site\lib\auto\Cpanel\JSON\XS\XS.dll
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Cpanel/JSON/XS/XS.dll b/Master/tlpkg/tlperl/site/lib/auto/Cpanel/JSON/XS/XS.dll
index 90c4962b77a..53d29aed264 100755
--- a/Master/tlpkg/tlperl/site/lib/auto/Cpanel/JSON/XS/XS.dll
+++ b/Master/tlpkg/tlperl/site/lib/auto/Cpanel/JSON/XS/XS.dll
Binary files differ
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Date/Parse/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Date/Parse/.packlist
deleted file mode 100644
index 5e66e1a6615..00000000000
--- a/Master/tlpkg/tlperl/site/lib/auto/Date/Parse/.packlist
+++ /dev/null
@@ -1,37 +0,0 @@
-C:\tlperl\site\lib\Date\Format.pm
-C:\tlperl\site\lib\Date\Language.pm
-C:\tlperl\site\lib\Date\Language\Afar.pm
-C:\tlperl\site\lib\Date\Language\Amharic.pm
-C:\tlperl\site\lib\Date\Language\Austrian.pm
-C:\tlperl\site\lib\Date\Language\Brazilian.pm
-C:\tlperl\site\lib\Date\Language\Bulgarian.pm
-C:\tlperl\site\lib\Date\Language\Chinese.pm
-C:\tlperl\site\lib\Date\Language\Chinese_GB.pm
-C:\tlperl\site\lib\Date\Language\Czech.pm
-C:\tlperl\site\lib\Date\Language\Danish.pm
-C:\tlperl\site\lib\Date\Language\Dutch.pm
-C:\tlperl\site\lib\Date\Language\English.pm
-C:\tlperl\site\lib\Date\Language\Finnish.pm
-C:\tlperl\site\lib\Date\Language\French.pm
-C:\tlperl\site\lib\Date\Language\Gedeo.pm
-C:\tlperl\site\lib\Date\Language\German.pm
-C:\tlperl\site\lib\Date\Language\Greek.pm
-C:\tlperl\site\lib\Date\Language\Hungarian.pm
-C:\tlperl\site\lib\Date\Language\Icelandic.pm
-C:\tlperl\site\lib\Date\Language\Italian.pm
-C:\tlperl\site\lib\Date\Language\Norwegian.pm
-C:\tlperl\site\lib\Date\Language\Oromo.pm
-C:\tlperl\site\lib\Date\Language\Romanian.pm
-C:\tlperl\site\lib\Date\Language\Russian.pm
-C:\tlperl\site\lib\Date\Language\Russian_cp1251.pm
-C:\tlperl\site\lib\Date\Language\Russian_koi8r.pm
-C:\tlperl\site\lib\Date\Language\Sidama.pm
-C:\tlperl\site\lib\Date\Language\Somali.pm
-C:\tlperl\site\lib\Date\Language\Spanish.pm
-C:\tlperl\site\lib\Date\Language\Swedish.pm
-C:\tlperl\site\lib\Date\Language\Tigrinya.pm
-C:\tlperl\site\lib\Date\Language\TigrinyaEritrean.pm
-C:\tlperl\site\lib\Date\Language\TigrinyaEthiopian.pm
-C:\tlperl\site\lib\Date\Language\Turkish.pm
-C:\tlperl\site\lib\Date\Parse.pm
-C:\tlperl\site\lib\Time\Zone.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Digest/SHA1/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Digest/SHA1/.packlist
index 45cf93670f0..5565625989a 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Digest/SHA1/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Digest/SHA1/.packlist
@@ -1,2 +1,2 @@
-C:\tlperl\site\lib\Digest\SHA1.pm
-C:\tlperl\site\lib\auto\Digest\SHA1\SHA1.dll
+D:\tlperl\site\lib\Digest\SHA1.pm
+D:\tlperl\site\lib\auto\Digest\SHA1\SHA1.dll
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Digest/SHA1/SHA1.dll b/Master/tlpkg/tlperl/site/lib/auto/Digest/SHA1/SHA1.dll
index 6c5491ba86c..a39bb62e301 100755
--- a/Master/tlpkg/tlperl/site/lib/auto/Digest/SHA1/SHA1.dll
+++ b/Master/tlpkg/tlperl/site/lib/auto/Digest/SHA1/SHA1.dll
Binary files differ
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Encode/Locale/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Encode/Locale/.packlist
index fca67c3c703..ab92a81c67d 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Encode/Locale/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Encode/Locale/.packlist
@@ -1 +1 @@
-C:\tlperl\site\lib\Encode\Locale.pm
+D:\tlperl\site\lib\Encode\Locale.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Encode/compat/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Encode/compat/.packlist
index d4a2e08bb74..1efa98462c5 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Encode/compat/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Encode/compat/.packlist
@@ -1,4 +1,4 @@
-C:\tlperl\site\lib\Encode\compat.pm
-C:\tlperl\site\lib\Encode\compat\5006001.pm
-C:\tlperl\site\lib\Encode\compat\Alias.pm
-C:\tlperl\site\lib\Encode\compat\common.pm
+D:\tlperl\site\lib\Encode\compat.pm
+D:\tlperl\site\lib\Encode\compat\5006001.pm
+D:\tlperl\site\lib\Encode\compat\Alias.pm
+D:\tlperl\site\lib\Encode\compat\common.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/File/Listing/.packlist b/Master/tlpkg/tlperl/site/lib/auto/File/Listing/.packlist
index 0d31ba57a1f..e7f9804febf 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/File/Listing/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/File/Listing/.packlist
@@ -1 +1 @@
-C:\tlperl\site\lib\File\Listing.pm
+D:\tlperl\site\lib\File\Listing.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/File/Which/.packlist b/Master/tlpkg/tlperl/site/lib/auto/File/Which/.packlist
index 3ba10e7c5e4..6071facafe5 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/File/Which/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/File/Which/.packlist
@@ -1 +1 @@
-C:\tlperl\site\lib\File\Which.pm
+D:\tlperl\site\lib\File\Which.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/HTML/Parser/.packlist b/Master/tlpkg/tlperl/site/lib/auto/HTML/Parser/.packlist
index 6ce7b6a07a9..cb9d663150f 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/HTML/Parser/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/HTML/Parser/.packlist
@@ -1,8 +1,8 @@
-C:\tlperl\site\lib\HTML\Entities.pm
-C:\tlperl\site\lib\HTML\Filter.pm
-C:\tlperl\site\lib\HTML\HeadParser.pm
-C:\tlperl\site\lib\HTML\LinkExtor.pm
-C:\tlperl\site\lib\HTML\Parser.pm
-C:\tlperl\site\lib\HTML\PullParser.pm
-C:\tlperl\site\lib\HTML\TokeParser.pm
-C:\tlperl\site\lib\auto\HTML\Parser\Parser.dll
+D:\tlperl\site\lib\HTML\Entities.pm
+D:\tlperl\site\lib\HTML\Filter.pm
+D:\tlperl\site\lib\HTML\HeadParser.pm
+D:\tlperl\site\lib\HTML\LinkExtor.pm
+D:\tlperl\site\lib\HTML\Parser.pm
+D:\tlperl\site\lib\HTML\PullParser.pm
+D:\tlperl\site\lib\HTML\TokeParser.pm
+D:\tlperl\site\lib\auto\HTML\Parser\Parser.dll
diff --git a/Master/tlpkg/tlperl/site/lib/auto/HTML/Parser/Parser.dll b/Master/tlpkg/tlperl/site/lib/auto/HTML/Parser/Parser.dll
index a2f658366ca..d25c0521dc2 100755
--- a/Master/tlpkg/tlperl/site/lib/auto/HTML/Parser/Parser.dll
+++ b/Master/tlpkg/tlperl/site/lib/auto/HTML/Parser/Parser.dll
Binary files differ
diff --git a/Master/tlpkg/tlperl/site/lib/auto/HTML/Tagset/.packlist b/Master/tlpkg/tlperl/site/lib/auto/HTML/Tagset/.packlist
index b0836c2d778..0625f11b922 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/HTML/Tagset/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/HTML/Tagset/.packlist
@@ -1 +1 @@
-C:\tlperl\site\lib\HTML\Tagset.pm
+D:\tlperl\site\lib\HTML\Tagset.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/HTTP/Cookies/.packlist b/Master/tlpkg/tlperl/site/lib/auto/HTTP/Cookies/.packlist
index c1f0a862133..82eb84f3efc 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/HTTP/Cookies/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/HTTP/Cookies/.packlist
@@ -1,3 +1,3 @@
-C:\tlperl\site\lib\HTTP\Cookies.pm
-C:\tlperl\site\lib\HTTP\Cookies\Microsoft.pm
-C:\tlperl\site\lib\HTTP\Cookies\Netscape.pm
+D:\tlperl\site\lib\HTTP\Cookies.pm
+D:\tlperl\site\lib\HTTP\Cookies\Microsoft.pm
+D:\tlperl\site\lib\HTTP\Cookies\Netscape.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/HTTP/Daemon/.packlist b/Master/tlpkg/tlperl/site/lib/auto/HTTP/Daemon/.packlist
index 20fe206daaa..8133238e5e5 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/HTTP/Daemon/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/HTTP/Daemon/.packlist
@@ -1 +1 @@
-C:\tlperl\site\lib\HTTP\Daemon.pm
+D:\tlperl\site\lib\HTTP\Daemon.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/HTTP/Date/.packlist b/Master/tlpkg/tlperl/site/lib/auto/HTTP/Date/.packlist
index 8a98075d656..78da80fb271 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/HTTP/Date/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/HTTP/Date/.packlist
@@ -1 +1 @@
-C:\tlperl\site\lib\HTTP\Date.pm
+D:\tlperl\site\lib\HTTP\Date.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/HTTP/Message/.packlist b/Master/tlpkg/tlperl/site/lib/auto/HTTP/Message/.packlist
index 80f40bf932d..71010b4eccd 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/HTTP/Message/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/HTTP/Message/.packlist
@@ -1,10 +1,10 @@
-C:\tlperl\site\lib\HTTP\Config.pm
-C:\tlperl\site\lib\HTTP\Headers.pm
-C:\tlperl\site\lib\HTTP\Headers\Auth.pm
-C:\tlperl\site\lib\HTTP\Headers\ETag.pm
-C:\tlperl\site\lib\HTTP\Headers\Util.pm
-C:\tlperl\site\lib\HTTP\Message.pm
-C:\tlperl\site\lib\HTTP\Request.pm
-C:\tlperl\site\lib\HTTP\Request\Common.pm
-C:\tlperl\site\lib\HTTP\Response.pm
-C:\tlperl\site\lib\HTTP\Status.pm
+D:\tlperl\site\lib\HTTP\Config.pm
+D:\tlperl\site\lib\HTTP\Headers.pm
+D:\tlperl\site\lib\HTTP\Headers\Auth.pm
+D:\tlperl\site\lib\HTTP\Headers\ETag.pm
+D:\tlperl\site\lib\HTTP\Headers\Util.pm
+D:\tlperl\site\lib\HTTP\Message.pm
+D:\tlperl\site\lib\HTTP\Request.pm
+D:\tlperl\site\lib\HTTP\Request\Common.pm
+D:\tlperl\site\lib\HTTP\Response.pm
+D:\tlperl\site\lib\HTTP\Status.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/HTTP/Negotiate/.packlist b/Master/tlpkg/tlperl/site/lib/auto/HTTP/Negotiate/.packlist
index 9d7d8f27c96..b25f4baccad 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/HTTP/Negotiate/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/HTTP/Negotiate/.packlist
@@ -1 +1 @@
-C:\tlperl\site\lib\HTTP\Negotiate.pm
+D:\tlperl\site\lib\HTTP\Negotiate.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/IO/HTML/.packlist b/Master/tlpkg/tlperl/site/lib/auto/IO/HTML/.packlist
index 6cb34ec6af1..647eea0824b 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/IO/HTML/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/IO/HTML/.packlist
@@ -1 +1 @@
-C:\tlperl\site\lib\IO\HTML.pm
+D:\tlperl\site\lib\IO\HTML.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/IO/String/.packlist b/Master/tlpkg/tlperl/site/lib/auto/IO/String/.packlist
index 301a4c1067d..6e2e1666d05 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/IO/String/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/IO/String/.packlist
@@ -1 +1 @@
-C:\tlperl\site\lib\IO\String.pm
+D:\tlperl\site\lib\IO\String.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/JSON/MaybeXS/.packlist b/Master/tlpkg/tlperl/site/lib/auto/JSON/MaybeXS/.packlist
index 255fd5c433b..1033ee8cca5 100755
--- a/Master/tlpkg/tlperl/site/lib/auto/JSON/MaybeXS/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/JSON/MaybeXS/.packlist
@@ -1 +1 @@
-C:\tlperl\site\lib\JSON\MaybeXS.pm
+D:\tlperl\site\lib\JSON\MaybeXS.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/LWP/MediaTypes/.packlist b/Master/tlpkg/tlperl/site/lib/auto/LWP/MediaTypes/.packlist
index ad241200dcf..1fb51f2710f 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/LWP/MediaTypes/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/LWP/MediaTypes/.packlist
@@ -1,2 +1,2 @@
-C:\tlperl\site\lib\LWP\MediaTypes.pm
-C:\tlperl\site\lib\LWP\media.types
+D:\tlperl\site\lib\LWP\MediaTypes.pm
+D:\tlperl\site\lib\LWP\media.types
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Math/Int64/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Math/Int64/.packlist
index 5c97b8b3279..7ef7fd51f60 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Math/Int64/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Math/Int64/.packlist
@@ -1,5 +1,5 @@
-C:\tlperl\site\lib\Math\Int64.pm
-C:\tlperl\site\lib\Math\Int64\die_on_overflow.pm
-C:\tlperl\site\lib\Math\Int64\native_if_available.pm
-C:\tlperl\site\lib\Math\UInt64.pm
-C:\tlperl\site\lib\auto\Math\Int64\Int64.dll
+D:\tlperl\site\lib\Math\Int64.pm
+D:\tlperl\site\lib\Math\Int64\die_on_overflow.pm
+D:\tlperl\site\lib\Math\Int64\native_if_available.pm
+D:\tlperl\site\lib\Math\UInt64.pm
+D:\tlperl\site\lib\auto\Math\Int64\Int64.dll
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Math/Int64/Int64.dll b/Master/tlpkg/tlperl/site/lib/auto/Math/Int64/Int64.dll
index 8856f379aa8..aaade889069 100755
--- a/Master/tlpkg/tlperl/site/lib/auto/Math/Int64/Int64.dll
+++ b/Master/tlpkg/tlperl/site/lib/auto/Math/Int64/Int64.dll
Binary files differ
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Mozilla/CA/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Mozilla/CA/.packlist
index a91ad79eaec..a3c007873c3 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Mozilla/CA/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Mozilla/CA/.packlist
@@ -1,3 +1,3 @@
-C:\tlperl\site\lib\Mozilla\CA.pm
-C:\tlperl\site\lib\Mozilla\CA\cacert.pem
-C:\tlperl\site\lib\Mozilla\mk-ca-bundle.pl
+D:\tlperl\site\lib\Mozilla\CA.pm
+D:\tlperl\site\lib\Mozilla\CA\cacert.pem
+D:\tlperl\site\lib\Mozilla\mk-ca-bundle.pl
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Net/HTTP/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Net/HTTP/.packlist
index e71697e4233..5bad66fceb0 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Net/HTTP/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Net/HTTP/.packlist
@@ -1,4 +1,4 @@
-C:\tlperl\site\lib\Net\HTTP.pm
-C:\tlperl\site\lib\Net\HTTPS.pm
-C:\tlperl\site\lib\Net\HTTP\Methods.pm
-C:\tlperl\site\lib\Net\HTTP\NB.pm
+D:\tlperl\site\lib\Net\HTTP.pm
+D:\tlperl\site\lib\Net\HTTPS.pm
+D:\tlperl\site\lib\Net\HTTP\Methods.pm
+D:\tlperl\site\lib\Net\HTTP\NB.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Socket/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Socket/.packlist
index 87d1fe32b26..2f1d04b3400 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Socket/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Socket/.packlist
@@ -1,2 +1,2 @@
-C:\tlperl\site\lib\Socket.pm
-C:\tlperl\site\lib\auto\Socket\Socket.dll
+D:\tlperl\site\lib\Socket.pm
+D:\tlperl\site\lib\auto\Socket\Socket.dll
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Socket/Socket.dll b/Master/tlpkg/tlperl/site/lib/auto/Socket/Socket.dll
index 2b8c6eb8799..a837f98bbcd 100755
--- a/Master/tlpkg/tlperl/site/lib/auto/Socket/Socket.dll
+++ b/Master/tlpkg/tlperl/site/lib/auto/Socket/Socket.dll
Binary files differ
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Test/Fatal/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Test/Fatal/.packlist
index f8b34dfe0f7..8ad2320ded6 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Test/Fatal/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Test/Fatal/.packlist
@@ -1 +1 @@
-C:\tlperl\site\lib\Test\Fatal.pm
+D:\tlperl\site\lib\Test\Fatal.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Test/Needs/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Test/Needs/.packlist
index 740b7c46c27..98a686ca445 100755
--- a/Master/tlpkg/tlperl/site/lib/auto/Test/Needs/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Test/Needs/.packlist
@@ -1 +1 @@
-C:\tlperl\site\lib\Test\Needs.pm
+D:\tlperl\site\lib\Test\Needs.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Test/RequiresInternet/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Test/RequiresInternet/.packlist
index 2236c52f855..e7d736e3b5d 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Test/RequiresInternet/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Test/RequiresInternet/.packlist
@@ -1 +1 @@
-C:\tlperl\site\lib\Test\RequiresInternet.pm
+D:\tlperl\site\lib\Test\RequiresInternet.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Try/Tiny/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Try/Tiny/.packlist
index 44c33603fa6..b101b6e842a 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Try/Tiny/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Try/Tiny/.packlist
@@ -1 +1 @@
-C:\tlperl\site\lib\Try\Tiny.pm
+D:\tlperl\site\lib\Try\Tiny.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/URI/.packlist b/Master/tlpkg/tlperl/site/lib/auto/URI/.packlist
index 9213ecb7b1d..7b559a2cc9c 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/URI/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/URI/.packlist
@@ -1,53 +1,53 @@
-C:\tlperl\site\lib\URI.pm
-C:\tlperl\site\lib\URI\Escape.pm
-C:\tlperl\site\lib\URI\Heuristic.pm
-C:\tlperl\site\lib\URI\IRI.pm
-C:\tlperl\site\lib\URI\QueryParam.pm
-C:\tlperl\site\lib\URI\Split.pm
-C:\tlperl\site\lib\URI\URL.pm
-C:\tlperl\site\lib\URI\WithBase.pm
-C:\tlperl\site\lib\URI\_foreign.pm
-C:\tlperl\site\lib\URI\_generic.pm
-C:\tlperl\site\lib\URI\_idna.pm
-C:\tlperl\site\lib\URI\_ldap.pm
-C:\tlperl\site\lib\URI\_login.pm
-C:\tlperl\site\lib\URI\_punycode.pm
-C:\tlperl\site\lib\URI\_query.pm
-C:\tlperl\site\lib\URI\_segment.pm
-C:\tlperl\site\lib\URI\_server.pm
-C:\tlperl\site\lib\URI\_userpass.pm
-C:\tlperl\site\lib\URI\data.pm
-C:\tlperl\site\lib\URI\file.pm
-C:\tlperl\site\lib\URI\file\Base.pm
-C:\tlperl\site\lib\URI\file\FAT.pm
-C:\tlperl\site\lib\URI\file\Mac.pm
-C:\tlperl\site\lib\URI\file\OS2.pm
-C:\tlperl\site\lib\URI\file\QNX.pm
-C:\tlperl\site\lib\URI\file\Unix.pm
-C:\tlperl\site\lib\URI\file\Win32.pm
-C:\tlperl\site\lib\URI\ftp.pm
-C:\tlperl\site\lib\URI\gopher.pm
-C:\tlperl\site\lib\URI\http.pm
-C:\tlperl\site\lib\URI\https.pm
-C:\tlperl\site\lib\URI\ldap.pm
-C:\tlperl\site\lib\URI\ldapi.pm
-C:\tlperl\site\lib\URI\ldaps.pm
-C:\tlperl\site\lib\URI\mailto.pm
-C:\tlperl\site\lib\URI\mms.pm
-C:\tlperl\site\lib\URI\news.pm
-C:\tlperl\site\lib\URI\nntp.pm
-C:\tlperl\site\lib\URI\pop.pm
-C:\tlperl\site\lib\URI\rlogin.pm
-C:\tlperl\site\lib\URI\rsync.pm
-C:\tlperl\site\lib\URI\rtsp.pm
-C:\tlperl\site\lib\URI\rtspu.pm
-C:\tlperl\site\lib\URI\sftp.pm
-C:\tlperl\site\lib\URI\sip.pm
-C:\tlperl\site\lib\URI\sips.pm
-C:\tlperl\site\lib\URI\snews.pm
-C:\tlperl\site\lib\URI\ssh.pm
-C:\tlperl\site\lib\URI\telnet.pm
-C:\tlperl\site\lib\URI\tn3270.pm
-C:\tlperl\site\lib\URI\urn.pm
-C:\tlperl\site\lib\URI\urn\isbn.pm
-C:\tlperl\site\lib\URI\urn\oid.pm
+D:\tlperl\site\lib\URI.pm
+D:\tlperl\site\lib\URI\Escape.pm
+D:\tlperl\site\lib\URI\Heuristic.pm
+D:\tlperl\site\lib\URI\IRI.pm
+D:\tlperl\site\lib\URI\QueryParam.pm
+D:\tlperl\site\lib\URI\Split.pm
+D:\tlperl\site\lib\URI\URL.pm
+D:\tlperl\site\lib\URI\WithBase.pm
+D:\tlperl\site\lib\URI\_foreign.pm
+D:\tlperl\site\lib\URI\_generic.pm
+D:\tlperl\site\lib\URI\_idna.pm
+D:\tlperl\site\lib\URI\_ldap.pm
+D:\tlperl\site\lib\URI\_login.pm
+D:\tlperl\site\lib\URI\_punycode.pm
+D:\tlperl\site\lib\URI\_query.pm
+D:\tlperl\site\lib\URI\_segment.pm
+D:\tlperl\site\lib\URI\_server.pm
+D:\tlperl\site\lib\URI\_userpass.pm
+D:\tlperl\site\lib\URI\data.pm
+D:\tlperl\site\lib\URI\file.pm
+D:\tlperl\site\lib\URI\file\Base.pm
+D:\tlperl\site\lib\URI\file\FAT.pm
+D:\tlperl\site\lib\URI\file\Mac.pm
+D:\tlperl\site\lib\URI\file\OS2.pm
+D:\tlperl\site\lib\URI\file\QNX.pm
+D:\tlperl\site\lib\URI\file\Unix.pm
+D:\tlperl\site\lib\URI\file\Win32.pm
+D:\tlperl\site\lib\URI\ftp.pm
+D:\tlperl\site\lib\URI\gopher.pm
+D:\tlperl\site\lib\URI\http.pm
+D:\tlperl\site\lib\URI\https.pm
+D:\tlperl\site\lib\URI\ldap.pm
+D:\tlperl\site\lib\URI\ldapi.pm
+D:\tlperl\site\lib\URI\ldaps.pm
+D:\tlperl\site\lib\URI\mailto.pm
+D:\tlperl\site\lib\URI\mms.pm
+D:\tlperl\site\lib\URI\news.pm
+D:\tlperl\site\lib\URI\nntp.pm
+D:\tlperl\site\lib\URI\pop.pm
+D:\tlperl\site\lib\URI\rlogin.pm
+D:\tlperl\site\lib\URI\rsync.pm
+D:\tlperl\site\lib\URI\rtsp.pm
+D:\tlperl\site\lib\URI\rtspu.pm
+D:\tlperl\site\lib\URI\sftp.pm
+D:\tlperl\site\lib\URI\sip.pm
+D:\tlperl\site\lib\URI\sips.pm
+D:\tlperl\site\lib\URI\snews.pm
+D:\tlperl\site\lib\URI\ssh.pm
+D:\tlperl\site\lib\URI\telnet.pm
+D:\tlperl\site\lib\URI\tn3270.pm
+D:\tlperl\site\lib\URI\urn.pm
+D:\tlperl\site\lib\URI\urn\isbn.pm
+D:\tlperl\site\lib\URI\urn\oid.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/WWW/RobotRules/.packlist b/Master/tlpkg/tlperl/site/lib/auto/WWW/RobotRules/.packlist
index 854d05abe32..5d6442b9baa 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/WWW/RobotRules/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/WWW/RobotRules/.packlist
@@ -1,2 +1,2 @@
-C:\tlperl\site\lib\WWW\RobotRules.pm
-C:\tlperl\site\lib\WWW\RobotRules\AnyDBM_File.pm
+D:\tlperl\site\lib\WWW\RobotRules.pm
+D:\tlperl\site\lib\WWW\RobotRules\AnyDBM_File.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Win32/API/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Win32/API/.packlist
index 1cba447ccf8..d567f9d28fe 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Win32/API/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Win32/API/.packlist
@@ -1,7 +1,7 @@
-C:\tlperl\site\lib\Win32\API.pm
-C:\tlperl\site\lib\Win32\API\Callback.pm
-C:\tlperl\site\lib\Win32\API\Callback\IATPatch.pod
-C:\tlperl\site\lib\Win32\API\Struct.pm
-C:\tlperl\site\lib\Win32\API\Type.pm
-C:\tlperl\site\lib\auto\Win32\API\API.dll
-C:\tlperl\site\lib\auto\Win32\API\Callback\Callback.dll
+D:\tlperl\site\lib\Win32\API.pm
+D:\tlperl\site\lib\Win32\API\Callback.pm
+D:\tlperl\site\lib\Win32\API\Callback\IATPatch.pod
+D:\tlperl\site\lib\Win32\API\Struct.pm
+D:\tlperl\site\lib\Win32\API\Type.pm
+D:\tlperl\site\lib\auto\Win32\API\API.dll
+D:\tlperl\site\lib\auto\Win32\API\Callback\Callback.dll
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Win32/API/API.dll b/Master/tlpkg/tlperl/site/lib/auto/Win32/API/API.dll
index 787e19fed9f..c166b53f2b7 100755
--- a/Master/tlpkg/tlperl/site/lib/auto/Win32/API/API.dll
+++ b/Master/tlpkg/tlperl/site/lib/auto/Win32/API/API.dll
Binary files differ
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Win32/API/Callback/Callback.dll b/Master/tlpkg/tlperl/site/lib/auto/Win32/API/Callback/Callback.dll
index 9877a24466e..1c5d5123501 100755
--- a/Master/tlpkg/tlperl/site/lib/auto/Win32/API/Callback/Callback.dll
+++ b/Master/tlpkg/tlperl/site/lib/auto/Win32/API/Callback/Callback.dll
Binary files differ
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Win32/Console/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Win32/Console/.packlist
index 1a443fac382..2ea80397bdb 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Win32/Console/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Win32/Console/.packlist
@@ -1,2 +1,2 @@
-C:\tlperl\site\lib\Win32\Console.pm
-C:\tlperl\site\lib\auto\Win32\Console\Console.dll
+D:\tlperl\site\lib\Win32\Console.pm
+D:\tlperl\site\lib\auto\Win32\Console\Console.dll
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Win32/Console/Console.dll b/Master/tlpkg/tlperl/site/lib/auto/Win32/Console/Console.dll
index fe0cbf1d2e2..42c6a717c12 100755
--- a/Master/tlpkg/tlperl/site/lib/auto/Win32/Console/Console.dll
+++ b/Master/tlpkg/tlperl/site/lib/auto/Win32/Console/Console.dll
Binary files differ
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Win32/OLE/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Win32/OLE/.packlist
deleted file mode 100644
index eb21a2a013b..00000000000
--- a/Master/tlpkg/tlperl/site/lib/auto/Win32/OLE/.packlist
+++ /dev/null
@@ -1,11 +0,0 @@
-C:\tlperl\site\lib\OLE.pm
-C:\tlperl\site\lib\Win32\OLE.pm
-C:\tlperl\site\lib\Win32\OLE\Const.pm
-C:\tlperl\site\lib\Win32\OLE\Enum.pm
-C:\tlperl\site\lib\Win32\OLE\Lite.pm
-C:\tlperl\site\lib\Win32\OLE\NEWS.pod
-C:\tlperl\site\lib\Win32\OLE\NLS.pm
-C:\tlperl\site\lib\Win32\OLE\TPJ.pod
-C:\tlperl\site\lib\Win32\OLE\TypeInfo.pm
-C:\tlperl\site\lib\Win32\OLE\Variant.pm
-C:\tlperl\site\lib\auto\Win32\OLE\OLE.dll
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Win32/OLE/OLE.dll b/Master/tlpkg/tlperl/site/lib/auto/Win32/OLE/OLE.dll
deleted file mode 100755
index 0b0103be055..00000000000
--- a/Master/tlpkg/tlperl/site/lib/auto/Win32/OLE/OLE.dll
+++ /dev/null
Binary files differ
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Win32/Shortcut/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Win32/Shortcut/.packlist
index 2969a834652..a18c87682c2 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Win32/Shortcut/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Win32/Shortcut/.packlist
@@ -1,2 +1,2 @@
-C:\tlperl\site\lib\Win32\Shortcut.pm
-C:\tlperl\site\lib\auto\Win32\Shortcut\Shortcut.dll
+D:\tlperl\site\lib\Win32\Shortcut.pm
+D:\tlperl\site\lib\auto\Win32\Shortcut\Shortcut.dll
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Win32/Shortcut/Shortcut.dll b/Master/tlpkg/tlperl/site/lib/auto/Win32/Shortcut/Shortcut.dll
index 42eeda695d4..e053bb72ca1 100755
--- a/Master/tlpkg/tlperl/site/lib/auto/Win32/Shortcut/Shortcut.dll
+++ b/Master/tlpkg/tlperl/site/lib/auto/Win32/Shortcut/Shortcut.dll
Binary files differ
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Win32/TieRegistry/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Win32/TieRegistry/.packlist
index 090c67dccf3..34633f64e3a 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Win32/TieRegistry/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Win32/TieRegistry/.packlist
@@ -1,2 +1,2 @@
-C:\tlperl\site\lib\Tie\Registry.pm
-C:\tlperl\site\lib\Win32\TieRegistry.pm
+D:\tlperl\site\lib\Tie\Registry.pm
+D:\tlperl\site\lib\Win32\TieRegistry.pm
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Win32API/Registry/.packlist b/Master/tlpkg/tlperl/site/lib/auto/Win32API/Registry/.packlist
index f86d8016410..3e88e7530b1 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/Win32API/Registry/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/Win32API/Registry/.packlist
@@ -1,3 +1,3 @@
-C:\tlperl\site\lib\Win32API\Registry.pm
-C:\tlperl\site\lib\Win32API\Registry\cRegistry.pc
-C:\tlperl\site\lib\auto\Win32API\Registry\Registry.dll
+D:\tlperl\site\lib\Win32API\Registry.pm
+D:\tlperl\site\lib\Win32API\Registry\cRegistry.pc
+D:\tlperl\site\lib\auto\Win32API\Registry\Registry.dll
diff --git a/Master/tlpkg/tlperl/site/lib/auto/Win32API/Registry/Registry.dll b/Master/tlpkg/tlperl/site/lib/auto/Win32API/Registry/Registry.dll
index f2dd358c533..8d1d2a0545c 100755
--- a/Master/tlpkg/tlperl/site/lib/auto/Win32API/Registry/Registry.dll
+++ b/Master/tlpkg/tlperl/site/lib/auto/Win32API/Registry/Registry.dll
Binary files differ
diff --git a/Master/tlpkg/tlperl/site/lib/auto/libwww/perl/.packlist b/Master/tlpkg/tlperl/site/lib/auto/libwww/perl/.packlist
index 156f09f720f..37441f87050 100644
--- a/Master/tlpkg/tlperl/site/lib/auto/libwww/perl/.packlist
+++ b/Master/tlpkg/tlperl/site/lib/auto/libwww/perl/.packlist
@@ -1,33 +1,33 @@
-C:\tlperl\bin\lwp-download
-C:\tlperl\bin\lwp-download.bat
-C:\tlperl\bin\lwp-dump
-C:\tlperl\bin\lwp-dump.bat
-C:\tlperl\bin\lwp-mirror
-C:\tlperl\bin\lwp-mirror.bat
-C:\tlperl\bin\lwp-request
-C:\tlperl\bin\lwp-request.bat
-C:\tlperl\site\lib\LWP.pm
-C:\tlperl\site\lib\LWP\Authen\Basic.pm
-C:\tlperl\site\lib\LWP\Authen\Digest.pm
-C:\tlperl\site\lib\LWP\Authen\Ntlm.pm
-C:\tlperl\site\lib\LWP\ConnCache.pm
-C:\tlperl\site\lib\LWP\Debug.pm
-C:\tlperl\site\lib\LWP\DebugFile.pm
-C:\tlperl\site\lib\LWP\Debug\TraceHTTP.pm
-C:\tlperl\site\lib\LWP\MemberMixin.pm
-C:\tlperl\site\lib\LWP\Protocol.pm
-C:\tlperl\site\lib\LWP\Protocol\cpan.pm
-C:\tlperl\site\lib\LWP\Protocol\data.pm
-C:\tlperl\site\lib\LWP\Protocol\file.pm
-C:\tlperl\site\lib\LWP\Protocol\ftp.pm
-C:\tlperl\site\lib\LWP\Protocol\gopher.pm
-C:\tlperl\site\lib\LWP\Protocol\http.pm
-C:\tlperl\site\lib\LWP\Protocol\loopback.pm
-C:\tlperl\site\lib\LWP\Protocol\mailto.pm
-C:\tlperl\site\lib\LWP\Protocol\nntp.pm
-C:\tlperl\site\lib\LWP\Protocol\nogo.pm
-C:\tlperl\site\lib\LWP\RobotUA.pm
-C:\tlperl\site\lib\LWP\Simple.pm
-C:\tlperl\site\lib\LWP\UserAgent.pm
-C:\tlperl\site\lib\libwww\lwpcook.pod
-C:\tlperl\site\lib\libwww\lwptut.pod
+D:\tlperl\bin\lwp-download
+D:\tlperl\bin\lwp-download.bat
+D:\tlperl\bin\lwp-dump
+D:\tlperl\bin\lwp-dump.bat
+D:\tlperl\bin\lwp-mirror
+D:\tlperl\bin\lwp-mirror.bat
+D:\tlperl\bin\lwp-request
+D:\tlperl\bin\lwp-request.bat
+D:\tlperl\site\lib\LWP.pm
+D:\tlperl\site\lib\LWP\Authen\Basic.pm
+D:\tlperl\site\lib\LWP\Authen\Digest.pm
+D:\tlperl\site\lib\LWP\Authen\Ntlm.pm
+D:\tlperl\site\lib\LWP\ConnCache.pm
+D:\tlperl\site\lib\LWP\Debug.pm
+D:\tlperl\site\lib\LWP\DebugFile.pm
+D:\tlperl\site\lib\LWP\Debug\TraceHTTP.pm
+D:\tlperl\site\lib\LWP\MemberMixin.pm
+D:\tlperl\site\lib\LWP\Protocol.pm
+D:\tlperl\site\lib\LWP\Protocol\cpan.pm
+D:\tlperl\site\lib\LWP\Protocol\data.pm
+D:\tlperl\site\lib\LWP\Protocol\file.pm
+D:\tlperl\site\lib\LWP\Protocol\ftp.pm
+D:\tlperl\site\lib\LWP\Protocol\gopher.pm
+D:\tlperl\site\lib\LWP\Protocol\http.pm
+D:\tlperl\site\lib\LWP\Protocol\loopback.pm
+D:\tlperl\site\lib\LWP\Protocol\mailto.pm
+D:\tlperl\site\lib\LWP\Protocol\nntp.pm
+D:\tlperl\site\lib\LWP\Protocol\nogo.pm
+D:\tlperl\site\lib\LWP\RobotUA.pm
+D:\tlperl\site\lib\LWP\Simple.pm
+D:\tlperl\site\lib\LWP\UserAgent.pm
+D:\tlperl\site\lib\libwww\lwpcook.pod
+D:\tlperl\site\lib\libwww\lwptut.pod