sqdkjqlsjdklqsjdlqskjd azjdjksqhvdjqskhdkqhsj zkhjdhqksldjqlskdjlqskjd zjhdjqlskdhqsljkhdsqd work/1776643671.97879/build.log000064400000002360152424177470011153 0ustar00cpanm (App::cpanminus) 1.9019 on perl 5.038002 built for x86_64-linux-gnu-thread-multi Work directory is /.cpanm/work/1776643671.97879 You have make /usr/bin/make You have LWP: 6.76 You have LWP::Protocol::https: 6.13 You have /usr/bin/tar: tar (GNU tar) 1.35 Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. You have /usr/bin/unzip Searching Switch () on cpanmetadb ... --> Working on Switch Fetching http://www.cpan.org/authors/id/C/CH/CHORNY/Switch-2.17.tar.gz -> OK Unpacking Switch-2.17.tar.gz Entering Switch-2.17 Checking configure dependencies from META.json Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.70) Configuring Switch-2.17 Running Makefile.PL -> OK Checking dependencies from MYMETA.json ... Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.70) Checking if you have Filter::Util::Call 0 ... Yes (1.64) Checking if you have if 0 ... Yes (0.0610) Checking if you have Text::Balanced 2 ... Yes (2.06) Building Switch-2.17 -> OK Successfully installed Switch-2.17 1 distribution installed work/1776643671.97879/Switch-2.17.tar.gz000064400000034232152424177470012331 0ustar00;(S Switch-2.17.tar3ݨV5fѫFϾ'bIwp3spM zz_t{_Oݺڍ a zS5TM'=s!nl-ԛfnL>- qCFcX1k>"cu >!Doteh4=c1#! Q\G$1c&wH0bn'3_ILճ*(ѷ 44[Ƚ?t}`(wXHLjĦI$XH:FA,$1M3*gGp%7A9$[넴'!1$-Nb0}h&f$0+ n@|Ly iq لkA$'#@D p5!YYS Oo*)r+jsz^|@ ݡk =c +F!7FA>pqF%BA(g\6 LC`=hT:- ] k6`nZ;Jе@g\MWSC\"Y|u8ENG,G<@t0M\_8 DBl49zwz }ʩA %SQtyb| ~w !wϻ8pH.S"vKpD$oihK4pav]bv#8##^ZVrBg4gqzO|؀awB:>''].%eJP.jUw^o]/W H+;/dʝW\R;>>#պV3OW|K t u;Nnq+1\R<KBtN12f1-;4Diٔ}-C1Z;H\YQK`h}6s|! $d_g0cwm- u wj>omfdEu! h,SK83ynU[taʹmLЊYCS* s9??)۹4H?@~ ݸLVڔzat{h۹,1՚*rJZa;B-"䘟dʜmU\a@/+jM jm;9%B/FYo[&qz9};"!E trlFD(sǸH\zSben,_oOk|On홮-Rllo!ܟLF.r95) rrN{|?>?-!V ٦ܛ.'@2N+xȰ[܍=*/;6VH޸{S܍㐽9x!|w?xksA8ƥqflH7)Cv$ucqޔ ]D iw 8!+f^`c;$r4&iy-SާGWzs&lU0E7\YC3t3՚_zU{_3 {<^Kv,!F㝲#m 'r!>ENۅtD YI v0R@I=>{KNߝtTU8??*,(wN/=?N~C?vHk2Qճ[V:~a@oHT8YـK x}'s z0b 6^z(;*"lh%(rǘrJT.KJV숸lgaq3ݢE"XR\dOnFM !?@ !F劂J_KT$,3tVkw;H<% u݂A g mk[eX%i\D.}~` 4^–B]@ -p4fCHیfpilf8\WA`>!Rn$xB,}{fY}9.y=_h4j7 `\ +u_P4PΖobN w:lۀcX!h"ঢ়@tȇw%PS/paѲ.}{9W2`o 3Y؞o&`q =o6ړ Q0ȉH7$H[ŨGO 6 ѤQhuye<拓c(k^dCxbqE| w rPl Ğ*hfV*ρ0#PFAPB_#Q7Z?X e*u0 Ry(V]eq H6V3I@_sq&(!z ywoAwlܯ&3Df~N+A{bVCbJ)`"^+ b7.7S5Pg R?]m2C0,)R,DV}ݣHb.1>CόEx5PtlٺɃ,( ,@;(>AujOz>\We[֜0n#{U љvGqOߐ7O^ ! PҤ61JgSW.*E(/*"/ʫ}\0=&% b߻ñBI"eDhNlN նM%sY*#r"*'T,,p4ȀMi!4E&,O,:e6U5_b0- v|#sw>7M9Z@5&`$4A GNO*DpMEi)[!߶˦b˭&9~ D$cŽhCGm ?ol^A.Ja88P8`pghY,ahxd5j;i:ΓOװq#?0Ks'ɧUl2\ 3B,_P_zLUjۨ۬fK,f5->Mix>sUn>vgi gYRȹq @y??ZaND-IP?zkmGp27HlGŏȍ^Oݳ':Ҷ).|'^p׫k7@ko\o踜DD}=_Uºj$$0AqPj V؃]ƦLbq NHy7$xD!M(Sfݡi%33ϋዒĥWxq{Vޣ'v[ҩ^(њOg@iUyX1GG\Q8ͰI߰{oյlu@GBW]N0F!+)9DfI)(gBޣ[(֮FDMQEWoýg/8k^:2/'MQXp]!H=eԄ+dް|ą@0xii rD(Y2"(5TS^fFL,-mK3n `ߑ'W o_e&;1s.eVN*>䋧kL|PӴp:mB(8Qoj7RGz|;W` InlR1B5F u>APʗ/<[ <`tzrg"vS6!Z%vf⿴ϓaqN eSض7B(+:;!keÊ촲{/_~瞞caaKm2L]_zw[޻iNf{>f>IM%y 'j'j\wy)!;t>84}f?B+yD+LWfOeyl[K@\gcvx+x,j赲|#HRd]yxűHءS~й#8(7)uf#& X"̽O-/iIᖠQtNzuF3uŘ[5\΃٫[yЍRE+v}3m>}t4SؐvtV_XLkjC}0   uBTˀY02`Y0?dVf׶cAZP1S̀mj k;6Li7 j׆. X[[g6TNy:ۘ30ۘ?ҁP@ LCSgp,tu t,O2ɂw,= J<7 ħ̧?4:as*= wxc}I]7vv >ĮQfd#e̫5i=jݢ]J6jE/{{9AN6 (k/x; GjQ4OPvhl`O)YJf}OCM".5Vmu =V)K{N=`Dlg|gh<$+KjF~|ϟ޾s9:,=>~ ^`nH7ʿ߆qumv%ta.|N?+A@(H(=F7DF&= FfϡHGgJA' zf7{:s[؞n?S%̪*\ɡ\aA)(8*݇cxK;$>Gp^ȡk h.'  㣗A=l0MHiZ?<vjx5^?HOcg9R4\ܡ`3ӽ BPEs]pI04*O{R@xN@xBR$#pM%{7Noh"DOip~4ciry0~&[C̽,5[50raw̤; h'vc7ZNo2J䒣2'x`c 񩦙[fViYW5UJU7 7JwXԶ V-N)![ui1ڶŮG٘hoXq=*vNo٨/滦Pu,(HOEE8;<4V{K Y\I@F؃>N .Heӊ&lˎ|KH25]ĠVi-"`ϲ dI:Q%,T6 QuL=Y){C81Q0ˆ S0nTVces1Ls/|anjJvЬ X2t 0,vsU&YqV5gdC MƄbE0BfЮHraoONddi~JbM1R࣏ |9*Ut&z]&jLj!(dd]謼wDҭ`(n)gԞI\5 Q,NZMUS5U酁LL/8 s`Mꨜ 2UX#X_@P'gYncNVsH4%م1DQX4A[+m'BCaWGZˆ1=GX_Gّ@4J3)$ǨXul̴o y$4Qnc $M{_p**zJ#| #q0.]kEXAeᱳҟ83?p *ܨ GeNСI(IvB=?2KS&͘h3hbkxR%,l9˕JK̆KnuxU`a4!F!:QzC &N+S"G0ؘHb.k~RZd;1 O[#'Fī|?Pl?Q;MO>A((U3T Dj֫$=K0COO-"Pp;3 >divr:}N0ShY]0j* /0=<4YZ`2aOLH 'aeR%_Sw `*EIxJ{#phٽ Ë0dKvKzȚo:2j)B%aP[,\(wZMH:2//y\Z/Z~B9@ D§p90|:.1L vB&)2DhXr/A'V`t'1]Z6s!99:2nPdQ LMyTxEEm mn0Z<T1s}9h0S-{q{? Ɲ sZ2&Xp4\Ja[Y~:kb}'cU`Ơ]v{罱4>[S 2U{ҿA,3LLMI r%4Mo{:1Hn7?ѳq\s4kM7:?핁9l"PGD185 :C gū^Jj/#.ŀ TL $˗A{4Պ9,:'YٱeBq|CJWWr ڜ k+qɌgJi0 QŶ,az>c/ĩQ* 5R i\f}`gZ&JP<@[C!R-[]d7C7#jĩq/~Wm|hzEY71ߠ` ݨFFĬ1~ގ4jY'a>\Zum;=`}䪥Pui-_HvVjY6V[U BoX䵁l Σ44v#È`lkA )$58YPn˙k㒭mJRqm| $Ñ؎1 d\9#MulCdll)F&@P;Xqئ$Xg@b76}+"3R‡/WO'NKii<=b3`хZLۣA\C'繤'b\~lU@OЈ# $D17c+5B@`^l@eaKgbsR7G7`HfT Ph4u薬JϖՈ6WBmA^dBÍDcA [2v 3 7tYą%'ْd7I&2zqF2HY= r7uYB2H ۤf² /QlSb 39!@\'-wY|)k}S*d<ҎJۊAy,Vb>u?>?|jE\F176Cm,)PȌtM$X{=rlH_T}GJIdA."ȜKaMD̑cG#/Cv]m /DKo&_kEHOVV+oAɰ- ',4 !%icYDxƋ9 X \7VO#j Pz4 < Ec"wi`QOxtڬ.5I+Q5c}ARLSt!S\)܎2)Ġ_ʒ T3^rڌ%nԃx)yJsz/* RKQ1-;bPeumĖLT }x[hdqWц|\fU PkQH%7D#9cp'ZGp~^RĦ*#{U6w݅E `ig109"f'0;UVk9) ȿ ђeGghcXʯA!NOm)uzqX֒B% JĚ1N@@8 lk܌& \Vj>&gb]$4t [`)lHbU$95\dU2@wf@ *uʲ2}9,9mtb'1t Rx @cu%?}jF`zTuCeh0(G0Gu㲾Ft =s}/qFyQN+2g+݄z<дHwl̐Y9eogt ~hM@eaƇ% 2@Kv2$F *E;)F "#B6ڟ7QdM)CWjAXΈك|O+Ga@5xuT1&cdV˂;Бxbpx';hO7.|{$YػsF$y5X󡩞xQq4jtǼ&dy:\抓 (o'1ICe ?/PGVfo0[~!= 6>j7덇({mם\9R7l: e$,6Ű}?-ݿ]|Uݥ}ۓB- (-sꪕŹ-Ҕ j _(,77Hؿ{qCL)KSVv[n?;x?/o]Nc m,+PX'}Q}_^ )Mw8kT7k{c֓HK<Cys1mTM_p SIy9)GW=GΛuְ`W%xVnL]tA7-yMN5+<Ʀ".XK9hFidו:!^6EMVU2G5N*GUet+K'y@{vG_]YEytD>sp!9t 5f Aa皻,jaڏ/S! ق!1SjBMv7ZNͻ؈O5eeIkVufTPM-uݟtsR#Hܠze%,i&W@1צ\{\;\;^3W^/ט+H/׈4HLQ:c7)fIiQ߀YZ\>7*OMm6o1,bդ_ lzlgԦˉg&Ftt5YȝّF"qeȍViM-Y6 3Kw'4ORۉk!L9ڔ=(G9#U:,'ѭ$I'$ڱk>9ZEL!JA΄TA h:p^&sgQZNTeal%g)yr[$rIE8 ԌpZ''CZPMT_<'۪cK2DKCXZ9eʧk,si{#:E,χK|CYZѷhs+5 7?0 ~V7}pnl}"}p>}H=>>#ۇ<4L2_ 2J>.IY҄LWsذ8ljBd9.$t' o ָXyk!jHtrw~|sw?_work/1776643671.97879/Switch-2.17/blib/script/.exists000064400000000000152424177470014720 0ustar00work/1776643671.97879/Switch-2.17/blib/arch/auto/Switch/.exists000064400000000000152424177470016542 0ustar00work/1776643671.97879/Switch-2.17/blib/arch/.exists000064400000000000152424177470014331 0ustar00work/1776643671.97879/Switch-2.17/blib/meta/MYMETA.json000064400000002333152424177470014724 0ustar00{ "abstract" : "A switch statement for Perl, do not use if you can use given/when", "author" : [ "Damian Conway", "Rafael Garcia-Suarez", "Alexandr Ciornii" ], "dynamic_config" : 0, "generated_by" : "ExtUtils::MakeMaker version 6.78, CPAN::Meta::Converter version 2.131490, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "Switch", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "Filter::Util::Call" : "0", "Text::Balanced" : "2", "if" : "0", "perl" : "5.005" } } }, "release_status" : "stable", "resources" : { "repository" : { "url" : "http://github.com/chorny/Switch" } }, "version" : "2.17", "x_serialization_backend" : "JSON::PP version 4.16" } work/1776643671.97879/Switch-2.17/blib/meta/install.json000064400000000255152424177470015377 0ustar00{"provides":{"Switch":{"version":2.17,"file":"Switch.pm"}},"name":"Switch","version":2.17,"target":"Switch","pathname":"C/CH/CHORNY/Switch-2.17.tar.gz","dist":"Switch-2.17"}work/1776643671.97879/Switch-2.17/blib/bin/.exists000064400000000000152424177470014164 0ustar00work/1776643671.97879/Switch-2.17/blib/lib/Switch.pm000044400000070215152424177470014456 0ustar00package Switch; use 5.005; use strict; use vars qw($VERSION); use Carp; use if $] >= 5.011, 'deprecate'; $VERSION = '2.17'; # LOAD FILTERING MODULE... use Filter::Util::Call; sub __(); # CATCH ATTEMPTS TO CALL case OUTSIDE THE SCOPE OF ANY switch $::_S_W_I_T_C_H = sub { croak "case/when statement not in switch/given block" }; my $offset; my $fallthrough; my ($Perl5, $Perl6) = (0,0); sub import { $fallthrough = grep /\bfallthrough\b/, @_; $offset = (caller)[2]+1; filter_add({}) unless @_>1 && $_[1] eq 'noimport'; my $pkg = caller; no strict 'refs'; for ( qw( on_defined on_exists ) ) { *{"${pkg}::$_"} = \&$_; } *{"${pkg}::__"} = \&__ if grep /__/, @_; $Perl6 = 1 if grep(/Perl\s*6/i, @_); $Perl5 = 1 if grep(/Perl\s*5/i, @_) || !grep(/Perl\s*6/i, @_); 1; } sub unimport { filter_del() } sub filter { my($self) = @_ ; local $Switch::file = (caller)[1]; my $status = 1; $status = filter_read(1_000_000); return $status if $status<0; $_ = filter_blocks($_,$offset); $_ = "# line $offset\n" . $_ if $offset; undef $offset; return $status; } use Text::Balanced ':ALL'; sub line { my ($pretext,$offset) = @_; ($pretext=~tr/\n/\n/)+($offset||0); } sub is_block { local $SIG{__WARN__}=sub{die$@}; local $^W=1; my $ishash = defined eval 'my $hr='.$_[0]; undef $@; return !$ishash; } my $pod_or_DATA = qr/ ^=[A-Za-z] .*? ^=cut (?![A-Za-z]) .*? $ | ^__(DATA|END)__\n.* /smx; my $casecounter = 1; sub filter_blocks { my ($source, $line) = @_; return $source unless $Perl5 && $source =~ /case|switch/ || $Perl6 && $source =~ /when|given|default/; pos $source = 0; my $text = ""; component: while (pos $source < length $source) { if ($source =~ m/(\G\s*use\s+Switch\b)/gc) { $text .= q{use Switch 'noimport'}; next component; } my @pos = Text::Balanced::_match_quotelike(\$source,qr/\s*/,1,0); if (defined $pos[0]) { my $pre = substr($source,$pos[0],$pos[1]); # matched prefix my $iEol; if( substr($source,$pos[4],$pos[5]) eq '/' && # 1st delimiter substr($source,$pos[2],$pos[3]) eq '' && # no op like 'm' index( substr($source,$pos[16],$pos[17]), 'x' ) == -1 && # no //x ($iEol = index( $source, "\n", $pos[4] )) > 0 && $iEol < $pos[8] ){ # embedded newlines # If this is a pattern, it isn't compatible with Switch. Backup past 1st '/'. pos( $source ) = $pos[6]; $text .= $pre . substr($source,$pos[2],$pos[6]-$pos[2]); } else { $text .= $pre . substr($source,$pos[2],$pos[18]-$pos[2]); } next component; } if ($source =~ m/(\G\s*$pod_or_DATA)/gc) { $text .= $1; next component; } @pos = Text::Balanced::_match_variable(\$source,qr/\s*/); if (defined $pos[0]) { $text .= " " if $pos[0] < $pos[2]; $text .= substr($source,$pos[0],$pos[4]-$pos[0]); next component; } if ($Perl5 && $source =~ m/\G(\n*)(\s*)(switch)\b(?=\s*[(])/gc || $Perl6 && $source =~ m/\G(\n*)(\s*)(given)\b(?=\s*[(])/gc || $Perl6 && $source =~ m/\G(\n*)(\s*)(given)\b(.*)(?=\{)/gc) { my $keyword = $3; my $arg = $4; $text .= $1.$2.'S_W_I_T_C_H: while (1) '; unless ($arg) { @pos = Text::Balanced::_match_codeblock(\$source,qr/\s*/,qr/\(/,qr/\)/,qr/[[{(<]/,qr/[]})>]/,undef) or do { die "Bad $keyword statement (problem in the parentheses?) near $Switch::file line ", line(substr($source,0,pos $source),$line), "\n"; }; $arg = filter_blocks(substr($source,$pos[0],$pos[4]-$pos[0]),line(substr($source,0,$pos[0]),$line)); } $arg =~ s {^\s*[(]\s*%} { ( \\\%} || $arg =~ s {^\s*[(]\s*m\b} { ( qr} || $arg =~ s {^\s*[(]\s*/} { ( qr/} || $arg =~ s {^\s*[(]\s*qw} { ( \\qw}; @pos = Text::Balanced::_match_codeblock(\$source,qr/\s*/,qr/\{/,qr/\}/,qr/\{/,qr/\}/,undef) or do { die "Bad $keyword statement (problem in the code block?) near $Switch::file line ", line(substr($source,0, pos $source), $line), "\n"; }; my $code = filter_blocks(substr($source,$pos[0],$pos[4]-$pos[0]),line(substr($source,0,$pos[0]),$line)); $code =~ s/{/{ local \$::_S_W_I_T_C_H; Switch::switch($arg);/; $text .= $code . 'continue {last}'; next component; } elsif ($Perl5 && $source =~ m/\G(\s*)(case\b)(?!\s*=>)/gc || $Perl6 && $source =~ m/\G(\s*)(when\b)(?!\s*=>)/gc || $Perl6 && $source =~ m/\G(\s*)(default\b)(?=\s*\{)/gc) { my $keyword = $2; $text .= $1 . ($keyword eq "default" ? "if (1)" : "if (Switch::case"); if ($keyword eq "default") { # Nothing to do } elsif (@pos = Text::Balanced::_match_codeblock(\$source,qr/\s*/,qr/\{/,qr/\}/,qr/\{/,qr/\}/,undef)) { my $code = substr($source,$pos[0],$pos[4]-$pos[0]); $text .= " " if $pos[0] < $pos[2]; $text .= "sub " if is_block $code; $text .= filter_blocks($code,line(substr($source,0,$pos[0]),$line)) . ")"; } elsif (@pos = Text::Balanced::_match_codeblock(\$source,qr/\s*/,qr/[[(]/,qr/[])]/,qr/[[({]/,qr/[])}]/,undef)) { my $code = filter_blocks(substr($source,$pos[0],$pos[4]-$pos[0]),line(substr($source,0,$pos[0]),$line)); $code =~ s {^\s*[(]\s*%} { ( \\\%} || $code =~ s {^\s*[(]\s*m\b} { ( qr} || $code =~ s {^\s*[(]\s*/} { ( qr/} || $code =~ s {^\s*[(]\s*qw} { ( \\qw}; $text .= " " if $pos[0] < $pos[2]; $text .= "$code)"; } elsif ($Perl6 && do{@pos = Text::Balanced::_match_variable(\$source,qr/\s*/)}) { my $code = filter_blocks(substr($source,$pos[0],$pos[4]-$pos[0]),line(substr($source,0,$pos[0]),$line)); $code =~ s {^\s*%} { \%} || $code =~ s {^\s*@} { \@}; $text .= " " if $pos[0] < $pos[2]; $text .= "$code)"; } elsif ( @pos = Text::Balanced::_match_quotelike(\$source,qr/\s*/,1,0)) { my $code = substr($source,$pos[2],$pos[18]-$pos[2]); $code = filter_blocks($code,line(substr($source,0,$pos[2]),$line)); $code =~ s {^\s*m} { qr} || $code =~ s {^\s*/} { qr/} || $code =~ s {^\s*qw} { \\qw}; $text .= " " if $pos[0] < $pos[2]; $text .= "$code)"; } elsif ($Perl5 && $source =~ m/\G\s*(([^\$\@{])[^\$\@{]*)(?=\s*{)/gc || $Perl6 && $source =~ m/\G\s*([^;{]*)()/gc) { my $code = filter_blocks($1,line(substr($source,0,pos $source),$line)); $text .= ' \\' if $2 eq '%'; $text .= " $code)"; } else { die "Bad $keyword statement (invalid $keyword value?) near $Switch::file line ", line(substr($source,0,pos $source), $line), "\n"; } die "Missing opening brace or semi-colon after 'when' value near $Switch::file line ", line(substr($source,0,pos $source), $line), "\n" unless !$Perl6 || $source =~ m/\G(\s*)(?=;|\{)/gc; do{@pos = Text::Balanced::_match_codeblock(\$source,qr/\s*/,qr/\{/,qr/\}/,qr/\{/,qr/\}/,undef)} or do { if ($source =~ m/\G\s*(?=([};]|\Z))/gc) { $casecounter++; next component; } die "Bad $keyword statement (problem in the code block?) near $Switch::file line ", line(substr($source,0,pos $source),$line), "\n"; }; my $code = filter_blocks(substr($source,$pos[0],$pos[4]-$pos[0]),line(substr($source,0,$pos[0]),$line)); $code =~ s/}(?=\s*\Z)/;last S_W_I_T_C_H }/ unless $fallthrough; $text .= "{ while (1) $code continue { goto C_A_S_E_$casecounter } last S_W_I_T_C_H; C_A_S_E_$casecounter: }"; $casecounter++; next component; } $source =~ m/\G(\s*(-[sm]\s+|\w+|#.*\n|\W))/gc; $text .= $1; } $text; } sub in { my ($x,$y) = @_; my @numy; for my $nextx ( @$x ) { my $numx = ref($nextx) || defined $nextx && (~$nextx&$nextx) eq 0; for my $j ( 0..$#$y ) { my $nexty = $y->[$j]; push @numy, ref($nexty) || defined $nexty && (~$nexty&$nexty) eq 0 if @numy <= $j; return 1 if $numx && $numy[$j] && $nextx==$nexty || $nextx eq $nexty; } } return ""; } sub on_exists { my $ref = @_==1 && ref($_[0]) eq 'HASH' ? $_[0] : { @_ }; [ keys %$ref ] } sub on_defined { my $ref = @_==1 && ref($_[0]) eq 'HASH' ? $_[0] : { @_ }; [ grep { defined $ref->{$_} } keys %$ref ] } sub switch(;$) { my ($s_val) = @_ ? $_[0] : $_; my $s_ref = ref $s_val; if ($s_ref eq 'CODE') { $::_S_W_I_T_C_H = sub { my $c_val = $_[0]; return $s_val == $c_val if ref $c_val eq 'CODE'; return $s_val->(@$c_val) if ref $c_val eq 'ARRAY'; return $s_val->($c_val); }; } elsif ($s_ref eq "" && defined $s_val && (~$s_val&$s_val) eq 0) # NUMERIC SCALAR { $::_S_W_I_T_C_H = sub { my $c_val = $_[0]; my $c_ref = ref $c_val; return $s_val == $c_val if $c_ref eq "" && defined $c_val && (~$c_val&$c_val) eq 0; return $s_val eq $c_val if $c_ref eq ""; return in([$s_val],$c_val) if $c_ref eq 'ARRAY'; return $c_val->($s_val) if $c_ref eq 'CODE'; return $c_val->call($s_val) if $c_ref eq 'Switch'; return scalar $s_val=~/$c_val/ if $c_ref eq 'Regexp'; return scalar $c_val->{$s_val} if $c_ref eq 'HASH'; return; }; } elsif ($s_ref eq "") # STRING SCALAR { $::_S_W_I_T_C_H = sub { my $c_val = $_[0]; my $c_ref = ref $c_val; return $s_val eq $c_val if $c_ref eq ""; return in([$s_val],$c_val) if $c_ref eq 'ARRAY'; return $c_val->($s_val) if $c_ref eq 'CODE'; return $c_val->call($s_val) if $c_ref eq 'Switch'; return scalar $s_val=~/$c_val/ if $c_ref eq 'Regexp'; return scalar $c_val->{$s_val} if $c_ref eq 'HASH'; return; }; } elsif ($s_ref eq 'ARRAY') { $::_S_W_I_T_C_H = sub { my $c_val = $_[0]; my $c_ref = ref $c_val; return in($s_val,[$c_val]) if $c_ref eq ""; return in($s_val,$c_val) if $c_ref eq 'ARRAY'; return $c_val->(@$s_val) if $c_ref eq 'CODE'; return $c_val->call(@$s_val) if $c_ref eq 'Switch'; return scalar grep {$_=~/$c_val/} @$s_val if $c_ref eq 'Regexp'; return scalar grep {$c_val->{$_}} @$s_val if $c_ref eq 'HASH'; return; }; } elsif ($s_ref eq 'Regexp') { $::_S_W_I_T_C_H = sub { my $c_val = $_[0]; my $c_ref = ref $c_val; return $c_val=~/s_val/ if $c_ref eq ""; return scalar grep {$_=~/s_val/} @$c_val if $c_ref eq 'ARRAY'; return $c_val->($s_val) if $c_ref eq 'CODE'; return $c_val->call($s_val) if $c_ref eq 'Switch'; return $s_val eq $c_val if $c_ref eq 'Regexp'; return grep {$_=~/$s_val/ && $c_val->{$_}} keys %$c_val if $c_ref eq 'HASH'; return; }; } elsif ($s_ref eq 'HASH') { $::_S_W_I_T_C_H = sub { my $c_val = $_[0]; my $c_ref = ref $c_val; return $s_val->{$c_val} if $c_ref eq ""; return scalar grep {$s_val->{$_}} @$c_val if $c_ref eq 'ARRAY'; return $c_val->($s_val) if $c_ref eq 'CODE'; return $c_val->call($s_val) if $c_ref eq 'Switch'; return grep {$_=~/$c_val/ && $s_val->{"$_"}} keys %$s_val if $c_ref eq 'Regexp'; return $s_val==$c_val if $c_ref eq 'HASH'; return; }; } elsif ($s_ref eq 'Switch') { $::_S_W_I_T_C_H = sub { my $c_val = $_[0]; return $s_val == $c_val if ref $c_val eq 'Switch'; return $s_val->call(@$c_val) if ref $c_val eq 'ARRAY'; return $s_val->call($c_val); }; } else { croak "Cannot switch on $s_ref"; } return 1; } sub case($) { local $SIG{__WARN__} = \&carp; $::_S_W_I_T_C_H->(@_); } # IMPLEMENT __ my $placeholder = bless { arity=>1, impl=>sub{$_[1+$_[0]]} }; sub __() { $placeholder } sub __arg($) { my $index = $_[0]+1; bless { arity=>0, impl=>sub{$_[$index]} }; } sub hosub(&@) { # WRITE THIS } sub call { my ($self,@args) = @_; return $self->{impl}->(0,@args); } sub meta_bop(&) { my ($op) = @_; sub { my ($left, $right, $reversed) = @_; ($right,$left) = @_ if $reversed; my $rop = ref $right eq 'Switch' ? $right : bless { arity=>0, impl=>sub{$right} }; my $lop = ref $left eq 'Switch' ? $left : bless { arity=>0, impl=>sub{$left} }; my $arity = $lop->{arity} + $rop->{arity}; return bless { arity => $arity, impl => sub { my $start = shift; return $op->($lop->{impl}->($start,@_), $rop->{impl}->($start+$lop->{arity},@_)); } }; }; } sub meta_uop(&) { my ($op) = @_; sub { my ($left) = @_; my $lop = ref $left eq 'Switch' ? $left : bless { arity=>0, impl=>sub{$left} }; my $arity = $lop->{arity}; return bless { arity => $arity, impl => sub { $op->($lop->{impl}->(@_)) } }; }; } use overload "+" => meta_bop {$_[0] + $_[1]}, "-" => meta_bop {$_[0] - $_[1]}, "*" => meta_bop {$_[0] * $_[1]}, "/" => meta_bop {$_[0] / $_[1]}, "%" => meta_bop {$_[0] % $_[1]}, "**" => meta_bop {$_[0] ** $_[1]}, "<<" => meta_bop {$_[0] << $_[1]}, ">>" => meta_bop {$_[0] >> $_[1]}, "x" => meta_bop {$_[0] x $_[1]}, "." => meta_bop {$_[0] . $_[1]}, "<" => meta_bop {$_[0] < $_[1]}, "<=" => meta_bop {$_[0] <= $_[1]}, ">" => meta_bop {$_[0] > $_[1]}, ">=" => meta_bop {$_[0] >= $_[1]}, "==" => meta_bop {$_[0] == $_[1]}, "!=" => meta_bop {$_[0] != $_[1]}, "<=>" => meta_bop {$_[0] <=> $_[1]}, "lt" => meta_bop {$_[0] lt $_[1]}, "le" => meta_bop {$_[0] le $_[1]}, "gt" => meta_bop {$_[0] gt $_[1]}, "ge" => meta_bop {$_[0] ge $_[1]}, "eq" => meta_bop {$_[0] eq $_[1]}, "ne" => meta_bop {$_[0] ne $_[1]}, "cmp" => meta_bop {$_[0] cmp $_[1]}, "\&" => meta_bop {$_[0] & $_[1]}, "^" => meta_bop {$_[0] ^ $_[1]}, "|" => meta_bop {$_[0] | $_[1]}, "atan2" => meta_bop {atan2 $_[0], $_[1]}, "neg" => meta_uop {-$_[0]}, "!" => meta_uop {!$_[0]}, "~" => meta_uop {~$_[0]}, "cos" => meta_uop {cos $_[0]}, "sin" => meta_uop {sin $_[0]}, "exp" => meta_uop {exp $_[0]}, "abs" => meta_uop {abs $_[0]}, "log" => meta_uop {log $_[0]}, "sqrt" => meta_uop {sqrt $_[0]}, "bool" => sub { croak "Can't use && or || in expression containing __" }, # "&()" => sub { $_[0]->{impl} }, # "||" => meta_bop {$_[0] || $_[1]}, # "&&" => meta_bop {$_[0] && $_[1]}, # fallback => 1, ; 1; __END__ =head1 NAME Switch - A switch statement for Perl, do not use if you can use given/when =head1 SYNOPSIS use Switch; switch ($val) { case 1 { print "number 1" } case "a" { print "string a" } case [1..10,42] { print "number in list" } case (\@array) { print "number in list" } case /\w+/ { print "pattern" } case qr/\w+/ { print "pattern" } case (\%hash) { print "entry in hash" } case (\&sub) { print "arg to subroutine" } else { print "previous case not true" } } =head1 BACKGROUND [Skip ahead to L<"DESCRIPTION"> if you don't care about the whys and wherefores of this control structure] In seeking to devise a "Swiss Army" case mechanism suitable for Perl, it is useful to generalize this notion of distributed conditional testing as far as possible. Specifically, the concept of "matching" between the switch value and the various case values need not be restricted to numeric (or string or referential) equality, as it is in other languages. Indeed, as Table 1 illustrates, Perl offers at least eighteen different ways in which two values could generate a match. Table 1: Matching a switch value ($s) with a case value ($c) Switch Case Type of Match Implied Matching Code Value Value ====== ===== ===================== ============= number same numeric or referential match if $s == $c; or ref equality object method result of method call match if $s->$c(); ref name match if defined $s->$c(); or ref other other string equality match if $s eq $c; non-ref non-ref scalar scalar string regexp pattern match match if $s =~ /$c/; array scalar array entry existence match if 0<=$c && $c<@$s; ref array entry definition match if defined $s->[$c]; array entry truth match if $s->[$c]; array array array intersection match if intersects(@$s, @$c); ref ref (apply this table to all pairs of elements $s->[$i] and $c->[$j]) array regexp array grep match if grep /$c/, @$s; ref hash scalar hash entry existence match if exists $s->{$c}; ref hash entry definition match if defined $s->{$c}; hash entry truth match if $s->{$c}; hash regexp hash grep match if grep /$c/, keys %$s; ref sub scalar return value defn match if defined $s->($c); ref return value truth match if $s->($c); sub array return value defn match if defined $s->(@$c); ref ref return value truth match if $s->(@$c); In reality, Table 1 covers 31 alternatives, because only the equality and intersection tests are commutative; in all other cases, the roles of the C<$s> and C<$c> variables could be reversed to produce a different test. For example, instead of testing a single hash for the existence of a series of keys (C{$c}>), one could test for the existence of a single key in a series of hashes (C{$s}>). =head1 DESCRIPTION The Switch.pm module implements a generalized case mechanism that covers most (but not all) of the numerous possible combinations of switch and case values described above. The module augments the standard Perl syntax with two new control statements: C and C. The C statement takes a single scalar argument of any type, specified in parentheses. C stores this value as the current switch value in a (localized) control variable. The value is followed by a block which may contain one or more Perl statements (including the C statement described below). The block is unconditionally executed once the switch value has been cached. A C statement takes a single scalar argument (in mandatory parentheses if it's a variable; otherwise the parens are optional) and selects the appropriate type of matching between that argument and the current switch value. The type of matching used is determined by the respective types of the switch value and the C argument, as specified in Table 1. If the match is successful, the mandatory block associated with the C statement is executed. In most other respects, the C statement is semantically identical to an C statement. For example, it can be followed by an C clause, and can be used as a postfix statement qualifier. However, when a C block has been executed control is automatically transferred to the statement after the immediately enclosing C block, rather than to the next statement within the block. In other words, the success of any C statement prevents other cases in the same scope from executing. But see L<"Allowing fall-through"> below. Together these two new statements provide a fully generalized case mechanism: use Switch; # AND LATER... %special = ( woohoo => 1, d'oh => 1 ); while (<>) { chomp; switch ($_) { case (%special) { print "homer\n"; } # if $special{$_} case /[a-z]/i { print "alpha\n"; } # if $_ =~ /a-z/i case [1..9] { print "small num\n"; } # if $_ in [1..9] case { $_[0] >= 10 } { print "big num\n"; } # if $_ >= 10 print "must be punctuation\n" case /\W/; # if $_ ~= /\W/ } } Note that Ces can be nested within C (or any other) blocks, and a series of C statements can try different types of matches -- hash membership, pattern match, array intersection, simple equality, etc. -- against the same switch value. The use of intersection tests against an array reference is particularly useful for aggregating integral cases: sub classify_digit { switch ($_[0]) { case 0 { return 'zero' } case [2,4,6,8] { return 'even' } case [1,3,5,7,9] { return 'odd' } case /[A-F]/i { return 'hex' } } } =head2 Allowing fall-through Fall-though (trying another case after one has already succeeded) is usually a Bad Idea in a switch statement. However, this is Perl, not a police state, so there I a way to do it, if you must. If a C block executes an untargeted C, control is immediately transferred to the statement I the C statement (i.e. usually another case), rather than out of the surrounding C block. For example: switch ($val) { case 1 { handle_num_1(); next } # and try next case... case "1" { handle_str_1(); next } # and try next case... case [0..9] { handle_num_any(); } # and we're done case /\d/ { handle_dig_any(); next } # and try next case... case /.*/ { handle_str_any(); next } # and try next case... } If $val held the number C<1>, the above C block would call the first three C subroutines, jumping to the next case test each time it encountered a C. After the third C block was executed, control would jump to the end of the enclosing C block. On the other hand, if $val held C<10>, then only the last two C subroutines would be called. Note that this mechanism allows the notion of I. For example: switch ($val) { case [0..9] { handle_num_any(); next if $val < 7; } case /\d/ { handle_dig_any(); } } If an untargeted C statement is executed in a case block, this immediately transfers control out of the enclosing C block (in other words, there is an implicit C at the end of each normal C block). Thus the previous example could also have been written: switch ($val) { case [0..9] { handle_num_any(); last if $val >= 7; next; } case /\d/ { handle_dig_any(); } } =head2 Automating fall-through In situations where case fall-through should be the norm, rather than an exception, an endless succession of terminal Cs is tedious and ugly. Hence, it is possible to reverse the default behaviour by specifying the string "fallthrough" when importing the module. For example, the following code is equivalent to the first example in L<"Allowing fall-through">: use Switch 'fallthrough'; switch ($val) { case 1 { handle_num_1(); } case "1" { handle_str_1(); } case [0..9] { handle_num_any(); last } case /\d/ { handle_dig_any(); } case /.*/ { handle_str_any(); } } Note the explicit use of a C to preserve the non-fall-through behaviour of the third case. =head2 Alternative syntax Perl 6 will provide a built-in switch statement with essentially the same semantics as those offered by Switch.pm, but with a different pair of keywords. In Perl 6 C will be spelled C, and C will be pronounced C. In addition, the C statement will not require switch or case values to be parenthesized. This future syntax is also (largely) available via the Switch.pm module, by importing it with the argument C<"Perl6">. For example: use Switch 'Perl6'; given ($val) { when 1 { handle_num_1(); } when ($str1) { handle_str_1(); } when [0..9] { handle_num_any(); last } when /\d/ { handle_dig_any(); } when /.*/ { handle_str_any(); } default { handle anything else; } } Note that scalars still need to be parenthesized, since they would be ambiguous in Perl 5. Note too that you can mix and match both syntaxes by importing the module with: use Switch 'Perl5', 'Perl6'; =head2 Higher-order Operations One situation in which C and C do not provide a good substitute for a cascaded C, is where a switch value needs to be tested against a series of conditions. For example: sub beverage { switch (shift) { case { $_[0] < 10 } { return 'milk' } case { $_[0] < 20 } { return 'coke' } case { $_[0] < 30 } { return 'beer' } case { $_[0] < 40 } { return 'wine' } case { $_[0] < 50 } { return 'malt' } case { $_[0] < 60 } { return 'Moet' } else { return 'milk' } } } (This is equivalent to writing C, etc.; C<$_[0]> is the argument to the anonymous subroutine.) The need to specify each condition as a subroutine block is tiresome. To overcome this, when importing Switch.pm, a special "placeholder" subroutine named C<__> [sic] may also be imported. This subroutine converts (almost) any expression in which it appears to a reference to a higher-order function. That is, the expression: use Switch '__'; __ < 2 is equivalent to: sub { $_[0] < 2 } With C<__>, the previous ugly case statements can be rewritten: case __ < 10 { return 'milk' } case __ < 20 { return 'coke' } case __ < 30 { return 'beer' } case __ < 40 { return 'wine' } case __ < 50 { return 'malt' } case __ < 60 { return 'Moet' } else { return 'milk' } The C<__> subroutine makes extensive use of operator overloading to perform its magic. All operations involving __ are overloaded to produce an anonymous subroutine that implements a lazy version of the original operation. The only problem is that operator overloading does not allow the boolean operators C<&&> and C<||> to be overloaded. So a case statement like this: case 0 <= __ && __ < 10 { return 'digit' } doesn't act as expected, because when it is executed, it constructs two higher order subroutines and then treats the two resulting references as arguments to C<&&>: sub { 0 <= $_[0] } && sub { $_[0] < 10 } This boolean expression is inevitably true, since both references are non-false. Fortunately, the overloaded C<'bool'> operator catches this situation and flags it as an error. =head1 DEPENDENCIES The module is implemented using Filter::Util::Call and Text::Balanced and requires both these modules to be installed. =head1 AUTHOR Damian Conway (damian@conway.org). This module is now maintained by Alexandr Ciornii (alexchorny@gmail.com). Previously was maintained by Rafael Garcia-Suarez and perl5 porters. =head1 BUGS There are undoubtedly serious bugs lurking somewhere in code this funky :-) Bug reports and other feedback are most welcome. May create syntax errors in other parts of code. On perl 5.10.x may cause syntax error if "case" is present inside heredoc. In general, use given/when instead. It were introduced in perl 5.10.0. Perl 5.10.0 was released in 2007. =head1 LIMITATIONS Due to the heuristic nature of Switch.pm's source parsing, the presence of regexes with embedded newlines that are specified with raw C delimiters and don't have a modifier C are indistinguishable from code chunks beginning with the division operator C. As a workaround you must use C or C for such patterns. Also, the presence of regexes specified with raw C delimiters may cause mysterious errors. The workaround is to use C instead. Due to the way source filters work in Perl, you can't use Switch inside an string C. May not work if sub prototypes are used (RT#33988). Regex captures in when are not available to code. If your source file is longer then 1 million characters and you have a switch statement that crosses the 1 million (or 2 million, etc.) character boundary you will get mysterious errors. The workaround is to use smaller source files. =head1 COPYRIGHT Copyright (c) 1997-2008, Damian Conway. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself. work/1776643671.97879/Switch-2.17/blib/lib/auto/Switch/.exists000064400000000000152424177470016373 0ustar00work/1776643671.97879/Switch-2.17/blib/lib/.exists000064400000000000152424177470014162 0ustar00work/1776643671.97879/Switch-2.17/blib/man1/.exists000064400000000000152424177470014250 0ustar00work/1776643671.97879/Switch-2.17/blib/man3/Switch.3pm000064400000043554152424177470014641 0ustar00.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Switch 3pm" .TH Switch 3pm 2014-03-18 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Switch \- A switch statement for Perl, do not use if you can use given/when .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& use Switch; \& \& switch ($val) { \& case 1 { print "number 1" } \& case "a" { print "string a" } \& case [1..10,42] { print "number in list" } \& case (\e@array) { print "number in list" } \& case /\ew+/ { print "pattern" } \& case qr/\ew+/ { print "pattern" } \& case (\e%hash) { print "entry in hash" } \& case (\e&sub) { print "arg to subroutine" } \& else { print "previous case not true" } \& } .Ve .SH BACKGROUND .IX Header "BACKGROUND" [Skip ahead to "DESCRIPTION" if you don't care about the whys and wherefores of this control structure] .PP In seeking to devise a "Swiss Army" case mechanism suitable for Perl, it is useful to generalize this notion of distributed conditional testing as far as possible. Specifically, the concept of "matching" between the switch value and the various case values need not be restricted to numeric (or string or referential) equality, as it is in other languages. Indeed, as Table 1 illustrates, Perl offers at least eighteen different ways in which two values could generate a match. .PP .Vb 1 \& Table 1: Matching a switch value ($s) with a case value ($c) \& \& Switch Case Type of Match Implied Matching Code \& Value Value \& ====== ===== ===================== ============= \& \& number same numeric or referential match if $s == $c; \& or ref equality \& \& object method result of method call match if $s\->$c(); \& ref name match if defined $s\->$c(); \& or ref \& \& other other string equality match if $s eq $c; \& non\-ref non\-ref \& scalar scalar \& \& string regexp pattern match match if $s =~ /$c/; \& \& array scalar array entry existence match if 0<=$c && $c<@$s; \& ref array entry definition match if defined $s\->[$c]; \& array entry truth match if $s\->[$c]; \& \& array array array intersection match if intersects(@$s, @$c); \& ref ref (apply this table to \& all pairs of elements \& $s\->[$i] and \& $c\->[$j]) \& \& array regexp array grep match if grep /$c/, @$s; \& ref \& \& hash scalar hash entry existence match if exists $s\->{$c}; \& ref hash entry definition match if defined $s\->{$c}; \& hash entry truth match if $s\->{$c}; \& \& hash regexp hash grep match if grep /$c/, keys %$s; \& ref \& \& sub scalar return value defn match if defined $s\->($c); \& ref return value truth match if $s\->($c); \& \& sub array return value defn match if defined $s\->(@$c); \& ref ref return value truth match if $s\->(@$c); .Ve .PP In reality, Table 1 covers 31 alternatives, because only the equality and intersection tests are commutative; in all other cases, the roles of the \f(CW$s\fR and \f(CW$c\fR variables could be reversed to produce a different test. For example, instead of testing a single hash for the existence of a series of keys (\f(CW\*(C`match if exists $s\->{$c}\*(C'\fR), one could test for the existence of a single key in a series of hashes (\f(CW\*(C`match if exists $c\->{$s}\*(C'\fR). .SH DESCRIPTION .IX Header "DESCRIPTION" The Switch.pm module implements a generalized case mechanism that covers most (but not all) of the numerous possible combinations of switch and case values described above. .PP The module augments the standard Perl syntax with two new control statements: \f(CW\*(C`switch\*(C'\fR and \f(CW\*(C`case\*(C'\fR. The \f(CW\*(C`switch\*(C'\fR statement takes a single scalar argument of any type, specified in parentheses. \&\f(CW\*(C`switch\*(C'\fR stores this value as the current switch value in a (localized) control variable. The value is followed by a block which may contain one or more Perl statements (including the \f(CW\*(C`case\*(C'\fR statement described below). The block is unconditionally executed once the switch value has been cached. .PP A \f(CW\*(C`case\*(C'\fR statement takes a single scalar argument (in mandatory parentheses if it's a variable; otherwise the parens are optional) and selects the appropriate type of matching between that argument and the current switch value. The type of matching used is determined by the respective types of the switch value and the \f(CW\*(C`case\*(C'\fR argument, as specified in Table 1. If the match is successful, the mandatory block associated with the \f(CW\*(C`case\*(C'\fR statement is executed. .PP In most other respects, the \f(CW\*(C`case\*(C'\fR statement is semantically identical to an \f(CW\*(C`if\*(C'\fR statement. For example, it can be followed by an \f(CW\*(C`else\*(C'\fR clause, and can be used as a postfix statement qualifier. .PP However, when a \f(CW\*(C`case\*(C'\fR block has been executed control is automatically transferred to the statement after the immediately enclosing \f(CW\*(C`switch\*(C'\fR block, rather than to the next statement within the block. In other words, the success of any \f(CW\*(C`case\*(C'\fR statement prevents other cases in the same scope from executing. But see "Allowing fall-through" below. .PP Together these two new statements provide a fully generalized case mechanism: .PP .Vb 1 \& use Switch; \& \& # AND LATER... \& \& %special = ( woohoo => 1, d\*(Aqoh => 1 ); \& \& while (<>) { \& chomp; \& switch ($_) { \& case (%special) { print "homer\en"; } # if $special{$_} \& case /[a\-z]/i { print "alpha\en"; } # if $_ =~ /a\-z/i \& case [1..9] { print "small num\en"; } # if $_ in [1..9] \& case { $_[0] >= 10 } { print "big num\en"; } # if $_ >= 10 \& print "must be punctuation\en" case /\eW/; # if $_ ~= /\eW/ \& } \& } .Ve .PP Note that \f(CW\*(C`switch\*(C'\fRes can be nested within \f(CW\*(C`case\*(C'\fR (or any other) blocks, and a series of \f(CW\*(C`case\*(C'\fR statements can try different types of matches \&\-\- hash membership, pattern match, array intersection, simple equality, etc. \-\- against the same switch value. .PP The use of intersection tests against an array reference is particularly useful for aggregating integral cases: .PP .Vb 8 \& sub classify_digit \& { \& switch ($_[0]) { case 0 { return \*(Aqzero\*(Aq } \& case [2,4,6,8] { return \*(Aqeven\*(Aq } \& case [1,3,5,7,9] { return \*(Aqodd\*(Aq } \& case /[A\-F]/i { return \*(Aqhex\*(Aq } \& } \& } .Ve .SS "Allowing fall-through" .IX Subsection "Allowing fall-through" Fall-though (trying another case after one has already succeeded) is usually a Bad Idea in a switch statement. However, this is Perl, not a police state, so there \fIis\fR a way to do it, if you must. .PP If a \f(CW\*(C`case\*(C'\fR block executes an untargeted \f(CW\*(C`next\*(C'\fR, control is immediately transferred to the statement \fIafter\fR the \f(CW\*(C`case\*(C'\fR statement (i.e. usually another case), rather than out of the surrounding \&\f(CW\*(C`switch\*(C'\fR block. .PP For example: .PP .Vb 7 \& switch ($val) { \& case 1 { handle_num_1(); next } # and try next case... \& case "1" { handle_str_1(); next } # and try next case... \& case [0..9] { handle_num_any(); } # and we\*(Aqre done \& case /\ed/ { handle_dig_any(); next } # and try next case... \& case /.*/ { handle_str_any(); next } # and try next case... \& } .Ve .PP If \f(CW$val\fR held the number \f(CW1\fR, the above \f(CW\*(C`switch\*(C'\fR block would call the first three \f(CW\*(C`handle_...\*(C'\fR subroutines, jumping to the next case test each time it encountered a \f(CW\*(C`next\*(C'\fR. After the third \f(CW\*(C`case\*(C'\fR block was executed, control would jump to the end of the enclosing \&\f(CW\*(C`switch\*(C'\fR block. .PP On the other hand, if \f(CW$val\fR held \f(CW10\fR, then only the last two \f(CW\*(C`handle_...\*(C'\fR subroutines would be called. .PP Note that this mechanism allows the notion of \fIconditional fall-through\fR. For example: .PP .Vb 4 \& switch ($val) { \& case [0..9] { handle_num_any(); next if $val < 7; } \& case /\ed/ { handle_dig_any(); } \& } .Ve .PP If an untargeted \f(CW\*(C`last\*(C'\fR statement is executed in a case block, this immediately transfers control out of the enclosing \f(CW\*(C`switch\*(C'\fR block (in other words, there is an implicit \f(CW\*(C`last\*(C'\fR at the end of each normal \f(CW\*(C`case\*(C'\fR block). Thus the previous example could also have been written: .PP .Vb 4 \& switch ($val) { \& case [0..9] { handle_num_any(); last if $val >= 7; next; } \& case /\ed/ { handle_dig_any(); } \& } .Ve .SS "Automating fall-through" .IX Subsection "Automating fall-through" In situations where case fall-through should be the norm, rather than an exception, an endless succession of terminal \f(CW\*(C`next\*(C'\fRs is tedious and ugly. Hence, it is possible to reverse the default behaviour by specifying the string "fallthrough" when importing the module. For example, the following code is equivalent to the first example in "Allowing fall-through": .PP .Vb 1 \& use Switch \*(Aqfallthrough\*(Aq; \& \& switch ($val) { \& case 1 { handle_num_1(); } \& case "1" { handle_str_1(); } \& case [0..9] { handle_num_any(); last } \& case /\ed/ { handle_dig_any(); } \& case /.*/ { handle_str_any(); } \& } .Ve .PP Note the explicit use of a \f(CW\*(C`last\*(C'\fR to preserve the non-fall-through behaviour of the third case. .SS "Alternative syntax" .IX Subsection "Alternative syntax" Perl 6 will provide a built-in switch statement with essentially the same semantics as those offered by Switch.pm, but with a different pair of keywords. In Perl 6 \f(CW\*(C`switch\*(C'\fR will be spelled \f(CW\*(C`given\*(C'\fR, and \&\f(CW\*(C`case\*(C'\fR will be pronounced \f(CW\*(C`when\*(C'\fR. In addition, the \f(CW\*(C`when\*(C'\fR statement will not require switch or case values to be parenthesized. .PP This future syntax is also (largely) available via the Switch.pm module, by importing it with the argument \f(CW"Perl6"\fR. For example: .PP .Vb 1 \& use Switch \*(AqPerl6\*(Aq; \& \& given ($val) { \& when 1 { handle_num_1(); } \& when ($str1) { handle_str_1(); } \& when [0..9] { handle_num_any(); last } \& when /\ed/ { handle_dig_any(); } \& when /.*/ { handle_str_any(); } \& default { handle anything else; } \& } .Ve .PP Note that scalars still need to be parenthesized, since they would be ambiguous in Perl 5. .PP Note too that you can mix and match both syntaxes by importing the module with: .PP .Vb 1 \& use Switch \*(AqPerl5\*(Aq, \*(AqPerl6\*(Aq; .Ve .SS "Higher-order Operations" .IX Subsection "Higher-order Operations" One situation in which \f(CW\*(C`switch\*(C'\fR and \f(CW\*(C`case\*(C'\fR do not provide a good substitute for a cascaded \f(CW\*(C`if\*(C'\fR, is where a switch value needs to be tested against a series of conditions. For example: .PP .Vb 11 \& sub beverage { \& switch (shift) { \& case { $_[0] < 10 } { return \*(Aqmilk\*(Aq } \& case { $_[0] < 20 } { return \*(Aqcoke\*(Aq } \& case { $_[0] < 30 } { return \*(Aqbeer\*(Aq } \& case { $_[0] < 40 } { return \*(Aqwine\*(Aq } \& case { $_[0] < 50 } { return \*(Aqmalt\*(Aq } \& case { $_[0] < 60 } { return \*(AqMoet\*(Aq } \& else { return \*(Aqmilk\*(Aq } \& } \& } .Ve .PP (This is equivalent to writing \f(CW\*(C`case (sub { $_[0] < 10 })\*(C'\fR, etc.; \f(CW$_[0]\fR is the argument to the anonymous subroutine.) .PP The need to specify each condition as a subroutine block is tiresome. To overcome this, when importing Switch.pm, a special "placeholder" subroutine named \f(CW\*(C`_\|_\*(C'\fR [sic] may also be imported. This subroutine converts (almost) any expression in which it appears to a reference to a higher-order function. That is, the expression: .PP .Vb 1 \& use Switch \*(Aq_\|_\*(Aq; \& \& _\|_ < 2 .Ve .PP is equivalent to: .PP .Vb 1 \& sub { $_[0] < 2 } .Ve .PP With \f(CW\*(C`_\|_\*(C'\fR, the previous ugly case statements can be rewritten: .PP .Vb 7 \& case _\|_ < 10 { return \*(Aqmilk\*(Aq } \& case _\|_ < 20 { return \*(Aqcoke\*(Aq } \& case _\|_ < 30 { return \*(Aqbeer\*(Aq } \& case _\|_ < 40 { return \*(Aqwine\*(Aq } \& case _\|_ < 50 { return \*(Aqmalt\*(Aq } \& case _\|_ < 60 { return \*(AqMoet\*(Aq } \& else { return \*(Aqmilk\*(Aq } .Ve .PP The \f(CW\*(C`_\|_\*(C'\fR subroutine makes extensive use of operator overloading to perform its magic. All operations involving _\|_ are overloaded to produce an anonymous subroutine that implements a lazy version of the original operation. .PP The only problem is that operator overloading does not allow the boolean operators \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR to be overloaded. So a case statement like this: .PP .Vb 1 \& case 0 <= _\|_ && _\|_ < 10 { return \*(Aqdigit\*(Aq } .Ve .PP doesn't act as expected, because when it is executed, it constructs two higher order subroutines and then treats the two resulting references as arguments to \f(CW\*(C`&&\*(C'\fR: .PP .Vb 1 \& sub { 0 <= $_[0] } && sub { $_[0] < 10 } .Ve .PP This boolean expression is inevitably true, since both references are non-false. Fortunately, the overloaded \f(CW\*(Aqbool\*(Aq\fR operator catches this situation and flags it as an error. .SH DEPENDENCIES .IX Header "DEPENDENCIES" The module is implemented using Filter::Util::Call and Text::Balanced and requires both these modules to be installed. .SH AUTHOR .IX Header "AUTHOR" Damian Conway (damian@conway.org). This module is now maintained by Alexandr Ciornii (alexchorny@gmail.com). Previously was maintained by Rafael Garcia-Suarez and perl5 porters. .SH BUGS .IX Header "BUGS" There are undoubtedly serious bugs lurking somewhere in code this funky :\-) Bug reports and other feedback are most welcome. .PP May create syntax errors in other parts of code. .PP On perl 5.10.x may cause syntax error if "case" is present inside heredoc. .PP In general, use given/when instead. It were introduced in perl 5.10.0. Perl 5.10.0 was released in 2007. .SH LIMITATIONS .IX Header "LIMITATIONS" Due to the heuristic nature of Switch.pm's source parsing, the presence of regexes with embedded newlines that are specified with raw \f(CW\*(C`/.../\*(C'\fR delimiters and don't have a modifier \f(CW\*(C`//x\*(C'\fR are indistinguishable from code chunks beginning with the division operator \f(CW\*(C`/\*(C'\fR. As a workaround you must use \f(CW\*(C`m/.../\*(C'\fR or \f(CW\*(C`m?...?\*(C'\fR for such patterns. Also, the presence of regexes specified with raw \f(CW\*(C`?...?\*(C'\fR delimiters may cause mysterious errors. The workaround is to use \f(CW\*(C`m?...?\*(C'\fR instead. .PP Due to the way source filters work in Perl, you can't use Switch inside an string \f(CW\*(C`eval\*(C'\fR. .PP May not work if sub prototypes are used (RT#33988). .PP Regex captures in when are not available to code. .PP If your source file is longer then 1 million characters and you have a switch statement that crosses the 1 million (or 2 million, etc.) character boundary you will get mysterious errors. The workaround is to use smaller source files. .SH COPYRIGHT .IX Header "COPYRIGHT" .Vb 3 \& Copyright (c) 1997\-2008, Damian Conway. All Rights Reserved. \& This module is free software. It may be used, redistributed \& and/or modified under the same terms as Perl itself. .Ve work/1776643671.97879/Switch-2.17/blib/man3/.exists000064400000000000152424177470014252 0ustar00work/1776643671.97879/Switch-2.17/README000064400000002127152424177470012060 0ustar00============================================================================== Release of version 2.17 of Switch ============================================================================== NAME Switch - A switch statement for Perl, do not use if you can use given/when DESCRIPTION Switch.pm provides the syntax and semantics for an explicit case mechanism for Perl. The syntax is minimal, introducing only the keywords C and C and conforming to the general pattern of existing Perl control structures. The semantics are particularly rich, allowing any one (or more) of nearly 30 forms of matching to be used when comparing a switch value with its various cases. AUTHOR Damian Conway (damian@conway.org) Maintained by Alexandr Ciornii (alexchorny@gmail.com) Previously was maintained by Rafael Garcia-Suarez and perl5 porters. COPYRIGHT Copyright (c) 1997-2008, Damian Conway. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself. work/1776643671.97879/Switch-2.17/MYMETA.json000064400000002333152424177470013066 0ustar00{ "abstract" : "A switch statement for Perl, do not use if you can use given/when", "author" : [ "Damian Conway", "Rafael Garcia-Suarez", "Alexandr Ciornii" ], "dynamic_config" : 0, "generated_by" : "ExtUtils::MakeMaker version 6.78, CPAN::Meta::Converter version 2.131490, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "Switch", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "Filter::Util::Call" : "0", "Text::Balanced" : "2", "if" : "0", "perl" : "5.005" } } }, "release_status" : "stable", "resources" : { "repository" : { "url" : "http://github.com/chorny/Switch" } }, "version" : "2.17", "x_serialization_backend" : "JSON::PP version 4.16" } work/1776643671.97879/Switch-2.17/Makefile000064400000070053152424177470012643 0ustar00# This Makefile is for the Switch extension to perl. # # It was generated automatically by MakeMaker version # 7.70 (Revision: 77000) from the contents of # Makefile.PL. Don't edit this file, edit Makefile.PL instead. # # ANY CHANGES MADE HERE WILL BE LOST! # # MakeMaker ARGV: () # # MakeMaker Parameters: # ABSTRACT_FROM => q[Switch.pm] # AUTHOR => [q[Damian Conway], q[Rafael Garcia-Suarez], q[Alexandr Ciornii]] # BUILD_REQUIRES => { } # CONFIGURE_REQUIRES => { } # INSTALLDIRS => q[site] # LICENSE => q[perl] # META_MERGE => { resources=>{ repository=>q[http://github.com/chorny/Switch] } } # MIN_PERL_VERSION => q[5.005] # NAME => q[Switch] # PREREQ_PM => { Filter::Util::Call=>q[0], Text::Balanced=>q[2], if=>q[0] } # TEST_REQUIRES => { } # VERSION_FROM => q[Switch.pm] # --- MakeMaker post_initialize section: # --- MakeMaker const_config section: # These definitions are from config.sh (via /usr/lib/x86_64-linux-gnu/perl-base/Config.pm). # They may have been overridden via Makefile.PL or on the command line. AR = ar CC = x86_64-linux-gnu-gcc CCCDLFLAGS = -fPIC CCDLFLAGS = -Wl,-E CPPRUN = x86_64-linux-gnu-gcc -E DLEXT = so DLSRC = dl_dlopen.xs EXE_EXT = FULL_AR = /usr/bin/ar LD = x86_64-linux-gnu-gcc LDDLFLAGS = -shared -L/usr/local/lib -fstack-protector-strong LDFLAGS = -fstack-protector-strong -L/usr/local/lib LIBC = /lib/x86_64-linux-gnu/libc.so.6 LIB_EXT = .a OBJ_EXT = .o OSNAME = linux OSVERS = 6.1.0 RANLIB = : SITELIBEXP = /usr/local/share/perl/5.38.2 SITEARCHEXP = /usr/local/lib/x86_64-linux-gnu/perl/5.38.2 SO = so VENDORARCHEXP = /usr/lib/x86_64-linux-gnu/perl5/5.38 VENDORLIBEXP = /usr/share/perl5 # --- MakeMaker constants section: AR_STATIC_ARGS = cr DIRFILESEP = / DFSEP = $(DIRFILESEP) NAME = Switch NAME_SYM = Switch VERSION = 2.17 VERSION_MACRO = VERSION VERSION_SYM = 2_17 DEFINE_VERSION = -D$(VERSION_MACRO)=\"$(VERSION)\" XS_VERSION = 2.17 XS_VERSION_MACRO = XS_VERSION XS_DEFINE_VERSION = -D$(XS_VERSION_MACRO)=\"$(XS_VERSION)\" INST_ARCHLIB = blib/arch INST_SCRIPT = blib/script INST_BIN = blib/bin INST_LIB = blib/lib INST_MAN1DIR = blib/man1 INST_MAN3DIR = blib/man3 MAN1EXT = 1p MAN3EXT = 3pm MAN1SECTION = 1 MAN3SECTION = 3 INSTALLDIRS = site DESTDIR = PREFIX = $(SITEPREFIX) PERLPREFIX = /usr SITEPREFIX = /usr/local VENDORPREFIX = /usr INSTALLPRIVLIB = /usr/share/perl/5.38 DESTINSTALLPRIVLIB = $(DESTDIR)$(INSTALLPRIVLIB) INSTALLSITELIB = /usr/local/share/perl/5.38.2 DESTINSTALLSITELIB = $(DESTDIR)$(INSTALLSITELIB) INSTALLVENDORLIB = /usr/share/perl5 DESTINSTALLVENDORLIB = $(DESTDIR)$(INSTALLVENDORLIB) INSTALLARCHLIB = /usr/lib/x86_64-linux-gnu/perl/5.38 DESTINSTALLARCHLIB = $(DESTDIR)$(INSTALLARCHLIB) INSTALLSITEARCH = /usr/local/lib/x86_64-linux-gnu/perl/5.38.2 DESTINSTALLSITEARCH = $(DESTDIR)$(INSTALLSITEARCH) INSTALLVENDORARCH = /usr/lib/x86_64-linux-gnu/perl5/5.38 DESTINSTALLVENDORARCH = $(DESTDIR)$(INSTALLVENDORARCH) INSTALLBIN = /usr/bin DESTINSTALLBIN = $(DESTDIR)$(INSTALLBIN) INSTALLSITEBIN = /usr/local/bin DESTINSTALLSITEBIN = $(DESTDIR)$(INSTALLSITEBIN) INSTALLVENDORBIN = /usr/bin DESTINSTALLVENDORBIN = $(DESTDIR)$(INSTALLVENDORBIN) INSTALLSCRIPT = /usr/bin DESTINSTALLSCRIPT = $(DESTDIR)$(INSTALLSCRIPT) INSTALLSITESCRIPT = /usr/local/bin DESTINSTALLSITESCRIPT = $(DESTDIR)$(INSTALLSITESCRIPT) INSTALLVENDORSCRIPT = /usr/bin DESTINSTALLVENDORSCRIPT = $(DESTDIR)$(INSTALLVENDORSCRIPT) INSTALLMAN1DIR = /usr/share/man/man1 DESTINSTALLMAN1DIR = $(DESTDIR)$(INSTALLMAN1DIR) INSTALLSITEMAN1DIR = /usr/local/man/man1 DESTINSTALLSITEMAN1DIR = $(DESTDIR)$(INSTALLSITEMAN1DIR) INSTALLVENDORMAN1DIR = /usr/share/man/man1 DESTINSTALLVENDORMAN1DIR = $(DESTDIR)$(INSTALLVENDORMAN1DIR) INSTALLMAN3DIR = /usr/share/man/man3 DESTINSTALLMAN3DIR = $(DESTDIR)$(INSTALLMAN3DIR) INSTALLSITEMAN3DIR = /usr/local/man/man3 DESTINSTALLSITEMAN3DIR = $(DESTDIR)$(INSTALLSITEMAN3DIR) INSTALLVENDORMAN3DIR = /usr/share/man/man3 DESTINSTALLVENDORMAN3DIR = $(DESTDIR)$(INSTALLVENDORMAN3DIR) PERL_LIB = /usr/share/perl/5.38 PERL_ARCHLIB = /usr/lib/x86_64-linux-gnu/perl/5.38 PERL_ARCHLIBDEP = /usr/lib/x86_64-linux-gnu/perl/5.38 LIBPERL_A = libperl.a FIRST_MAKEFILE = Makefile MAKEFILE_OLD = Makefile.old MAKE_APERL_FILE = Makefile.aperl PERLMAINCC = $(CC) PERL_INC = /usr/lib/x86_64-linux-gnu/perl/5.38/CORE PERL_INCDEP = /usr/lib/x86_64-linux-gnu/perl/5.38/CORE PERL = "/usr/bin/perl" FULLPERL = "/usr/bin/perl" ABSPERL = $(PERL) PERLRUN = $(PERL) FULLPERLRUN = $(FULLPERL) ABSPERLRUN = $(ABSPERL) PERLRUNINST = $(PERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)" FULLPERLRUNINST = $(FULLPERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)" ABSPERLRUNINST = $(ABSPERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)" PERL_CORE = 0 PERM_DIR = 755 PERM_RW = 644 PERM_RWX = 755 MAKEMAKER = /usr/share/perl/5.38/ExtUtils/MakeMaker.pm MM_VERSION = 7.70 MM_REVISION = 77000 # FULLEXT = Pathname for extension directory (eg Foo/Bar/Oracle). # BASEEXT = Basename part of FULLEXT. May be just equal FULLEXT. (eg Oracle) # PARENT_NAME = NAME without BASEEXT and no trailing :: (eg Foo::Bar) # DLBASE = Basename part of dynamic library. May be just equal BASEEXT. MAKE = make FULLEXT = Switch BASEEXT = Switch PARENT_NAME = DLBASE = $(BASEEXT) VERSION_FROM = Switch.pm OBJECT = LDFROM = $(OBJECT) LINKTYPE = dynamic BOOTDEP = # Handy lists of source code files: XS_FILES = C_FILES = O_FILES = H_FILES = MAN1PODS = MAN3PODS = Switch.pm # Where is the Config information that we are using/depend on CONFIGDEP = $(PERL_ARCHLIBDEP)$(DFSEP)Config.pm $(PERL_INCDEP)$(DFSEP)config.h # Where to build things INST_LIBDIR = $(INST_LIB) INST_ARCHLIBDIR = $(INST_ARCHLIB) INST_AUTODIR = $(INST_LIB)/auto/$(FULLEXT) INST_ARCHAUTODIR = $(INST_ARCHLIB)/auto/$(FULLEXT) INST_STATIC = INST_DYNAMIC = INST_BOOT = # Extra linker info EXPORT_LIST = PERL_ARCHIVE = PERL_ARCHIVEDEP = PERL_ARCHIVE_AFTER = TO_INST_PM = Switch.pm # --- MakeMaker platform_constants section: MM_Unix_VERSION = 7.70 PERL_MALLOC_DEF = -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc # --- MakeMaker tool_autosplit section: # Usage: $(AUTOSPLITFILE) FileToSplit AutoDirToSplitInto AUTOSPLITFILE = $(ABSPERLRUN) -e 'use AutoSplit; autosplit($$$$ARGV[0], $$$$ARGV[1], 0, 1, 1)' -- # --- MakeMaker tool_xsubpp section: # --- MakeMaker tools_other section: SHELL = /bin/sh CHMOD = chmod CP = cp MV = mv NOOP = $(TRUE) NOECHO = @ RM_F = rm -f RM_RF = rm -rf TEST_F = test -f TOUCH = touch UMASK_NULL = umask 0 DEV_NULL = > /dev/null 2>&1 MKPATH = $(ABSPERLRUN) -MExtUtils::Command -e 'mkpath' -- EQUALIZE_TIMESTAMP = $(ABSPERLRUN) -MExtUtils::Command -e 'eqtime' -- FALSE = false TRUE = true ECHO = echo ECHO_N = echo -n UNINST = 0 VERBINST = 0 MOD_INSTALL = $(ABSPERLRUN) -MExtUtils::Install -e 'install([ from_to => {@ARGV}, verbose => '\''$(VERBINST)'\'', uninstall_shadows => '\''$(UNINST)'\'', dir_mode => '\''$(PERM_DIR)'\'' ]);' -- DOC_INSTALL = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'perllocal_install' -- UNINSTALL = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'uninstall' -- WARN_IF_OLD_PACKLIST = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'warn_if_old_packlist' -- MACROSTART = MACROEND = USEMAKEFILE = -f FIXIN = $(ABSPERLRUN) -MExtUtils::MY -e 'MY->fixin(shift)' -- CP_NONEMPTY = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'cp_nonempty' -- # --- MakeMaker makemakerdflt section: makemakerdflt : all $(NOECHO) $(NOOP) # --- MakeMaker dist section: TAR = tar TARFLAGS = cvf ZIP = zip ZIPFLAGS = -r COMPRESS = gzip --best SUFFIX = .gz SHAR = shar PREOP = $(NOECHO) $(NOOP) POSTOP = $(NOECHO) $(NOOP) TO_UNIX = $(NOECHO) $(NOOP) CI = ci -u RCS_LABEL = rcs -Nv$(VERSION_SYM): -q DIST_CP = best DIST_DEFAULT = tardist DISTNAME = Switch DISTVNAME = Switch-2.17 # --- MakeMaker macro section: # --- MakeMaker depend section: # --- MakeMaker cflags section: # --- MakeMaker const_loadlibs section: # --- MakeMaker const_cccmd section: # --- MakeMaker post_constants section: # --- MakeMaker pasthru section: PASTHRU = LIBPERL_A="$(LIBPERL_A)"\ LINKTYPE="$(LINKTYPE)"\ LD="$(LD)"\ PREFIX="$(PREFIX)"\ PASTHRU_DEFINE='$(DEFINE) $(PASTHRU_DEFINE)'\ PASTHRU_INC='$(INC) $(PASTHRU_INC)' # --- MakeMaker special_targets section: .SUFFIXES : .xs .c .C .cpp .i .s .cxx .cc $(OBJ_EXT) .PHONY: all config static dynamic test linkext manifest blibdirs clean realclean disttest distdir pure_all subdirs clean_subdirs makemakerdflt manifypods realclean_subdirs subdirs_dynamic subdirs_pure_nolink subdirs_static subdirs-test_dynamic subdirs-test_static test_dynamic test_static # --- MakeMaker c_o section: # --- MakeMaker xs_c section: # --- MakeMaker xs_o section: # --- MakeMaker top_targets section: all :: pure_all manifypods $(NOECHO) $(NOOP) pure_all :: config pm_to_blib subdirs linkext $(NOECHO) $(NOOP) subdirs :: $(MYEXTLIB) $(NOECHO) $(NOOP) config :: $(FIRST_MAKEFILE) blibdirs $(NOECHO) $(NOOP) help : perldoc ExtUtils::MakeMaker # --- MakeMaker blibdirs section: blibdirs : $(INST_LIBDIR)$(DFSEP).exists $(INST_ARCHLIB)$(DFSEP).exists $(INST_AUTODIR)$(DFSEP).exists $(INST_ARCHAUTODIR)$(DFSEP).exists $(INST_BIN)$(DFSEP).exists $(INST_SCRIPT)$(DFSEP).exists $(INST_MAN1DIR)$(DFSEP).exists $(INST_MAN3DIR)$(DFSEP).exists $(NOECHO) $(NOOP) # Backwards compat with 6.18 through 6.25 blibdirs.ts : blibdirs $(NOECHO) $(NOOP) $(INST_LIBDIR)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_LIBDIR) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_LIBDIR) $(NOECHO) $(TOUCH) $(INST_LIBDIR)$(DFSEP).exists $(INST_ARCHLIB)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_ARCHLIB) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_ARCHLIB) $(NOECHO) $(TOUCH) $(INST_ARCHLIB)$(DFSEP).exists $(INST_AUTODIR)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_AUTODIR) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_AUTODIR) $(NOECHO) $(TOUCH) $(INST_AUTODIR)$(DFSEP).exists $(INST_ARCHAUTODIR)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_ARCHAUTODIR) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_ARCHAUTODIR) $(NOECHO) $(TOUCH) $(INST_ARCHAUTODIR)$(DFSEP).exists $(INST_BIN)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_BIN) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_BIN) $(NOECHO) $(TOUCH) $(INST_BIN)$(DFSEP).exists $(INST_SCRIPT)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_SCRIPT) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_SCRIPT) $(NOECHO) $(TOUCH) $(INST_SCRIPT)$(DFSEP).exists $(INST_MAN1DIR)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_MAN1DIR) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_MAN1DIR) $(NOECHO) $(TOUCH) $(INST_MAN1DIR)$(DFSEP).exists $(INST_MAN3DIR)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_MAN3DIR) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_MAN3DIR) $(NOECHO) $(TOUCH) $(INST_MAN3DIR)$(DFSEP).exists # --- MakeMaker linkext section: linkext :: dynamic $(NOECHO) $(NOOP) # --- MakeMaker dlsyms section: # --- MakeMaker dynamic_bs section: BOOTSTRAP = # --- MakeMaker dynamic section: dynamic :: $(FIRST_MAKEFILE) config $(INST_BOOT) $(INST_DYNAMIC) $(NOECHO) $(NOOP) # --- MakeMaker dynamic_lib section: # --- MakeMaker static section: ## $(INST_PM) has been moved to the all: target. ## It remains here for awhile to allow for old usage: "make static" static :: $(FIRST_MAKEFILE) $(INST_STATIC) $(NOECHO) $(NOOP) # --- MakeMaker static_lib section: # --- MakeMaker manifypods section: POD2MAN_EXE = $(PERLRUN) "-MExtUtils::Command::MM" -e pod2man "--" POD2MAN = $(POD2MAN_EXE) manifypods : pure_all config \ Switch.pm $(NOECHO) $(POD2MAN) --section=$(MAN3EXT) --perm_rw=$(PERM_RW) -u \ Switch.pm $(INST_MAN3DIR)/Switch.$(MAN3EXT) # --- MakeMaker processPL section: # --- MakeMaker installbin section: # --- MakeMaker subdirs section: # none # --- MakeMaker clean_subdirs section: clean_subdirs : $(NOECHO) $(NOOP) # --- MakeMaker clean section: # Delete temporary files but do not touch installed files. We don't delete # the Makefile here so a later make realclean still has a makefile to use. clean :: clean_subdirs - $(RM_F) \ $(BASEEXT).bso $(BASEEXT).def \ $(BASEEXT).exp $(BASEEXT).x \ $(BOOTSTRAP) $(INST_ARCHAUTODIR)/extralibs.all \ $(INST_ARCHAUTODIR)/extralibs.ld $(MAKE_APERL_FILE) \ *$(LIB_EXT) *$(OBJ_EXT) \ *perl.core MYMETA.json \ MYMETA.yml blibdirs.ts \ core core.*perl.*.? \ core.[0-9] core.[0-9][0-9] \ core.[0-9][0-9][0-9] core.[0-9][0-9][0-9][0-9] \ core.[0-9][0-9][0-9][0-9][0-9] lib$(BASEEXT).def \ mon.out perl \ perl$(EXE_EXT) perl.exe \ perlmain.c pm_to_blib \ pm_to_blib.ts so_locations \ tmon.out - $(RM_RF) \ blib $(NOECHO) $(RM_F) $(MAKEFILE_OLD) - $(MV) $(FIRST_MAKEFILE) $(MAKEFILE_OLD) $(DEV_NULL) # --- MakeMaker realclean_subdirs section: # so clean is forced to complete before realclean_subdirs runs realclean_subdirs : clean $(NOECHO) $(NOOP) # --- MakeMaker realclean section: # Delete temporary files (via clean) and also delete dist files realclean purge :: realclean_subdirs - $(RM_F) \ $(FIRST_MAKEFILE) $(MAKEFILE_OLD) - $(RM_RF) \ $(DISTVNAME) # --- MakeMaker metafile section: metafile : create_distdir $(NOECHO) $(ECHO) Generating META.yml $(NOECHO) $(ECHO) '---' > META_new.yml $(NOECHO) $(ECHO) 'abstract: '\''A switch statement for Perl, do not use if you can use given/when'\''' >> META_new.yml $(NOECHO) $(ECHO) 'author:' >> META_new.yml $(NOECHO) $(ECHO) ' - '\''Damian Conway'\''' >> META_new.yml $(NOECHO) $(ECHO) ' - '\''Rafael Garcia-Suarez'\''' >> META_new.yml $(NOECHO) $(ECHO) ' - '\''Alexandr Ciornii'\''' >> META_new.yml $(NOECHO) $(ECHO) 'build_requires:' >> META_new.yml $(NOECHO) $(ECHO) ' ExtUtils::MakeMaker: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) 'configure_requires:' >> META_new.yml $(NOECHO) $(ECHO) ' ExtUtils::MakeMaker: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) 'dynamic_config: 1' >> META_new.yml $(NOECHO) $(ECHO) 'generated_by: '\''ExtUtils::MakeMaker version 7.70, CPAN::Meta::Converter version 2.150010'\''' >> META_new.yml $(NOECHO) $(ECHO) 'license: perl' >> META_new.yml $(NOECHO) $(ECHO) 'meta-spec:' >> META_new.yml $(NOECHO) $(ECHO) ' url: http://module-build.sourceforge.net/META-spec-v1.4.html' >> META_new.yml $(NOECHO) $(ECHO) ' version: '\''1.4'\''' >> META_new.yml $(NOECHO) $(ECHO) 'name: Switch' >> META_new.yml $(NOECHO) $(ECHO) 'no_index:' >> META_new.yml $(NOECHO) $(ECHO) ' directory:' >> META_new.yml $(NOECHO) $(ECHO) ' - t' >> META_new.yml $(NOECHO) $(ECHO) ' - inc' >> META_new.yml $(NOECHO) $(ECHO) 'requires:' >> META_new.yml $(NOECHO) $(ECHO) ' Filter::Util::Call: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) ' Text::Balanced: '\''2'\''' >> META_new.yml $(NOECHO) $(ECHO) ' if: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) ' perl: '\''5.005'\''' >> META_new.yml $(NOECHO) $(ECHO) 'resources:' >> META_new.yml $(NOECHO) $(ECHO) ' repository: http://github.com/chorny/Switch' >> META_new.yml $(NOECHO) $(ECHO) 'version: '\''2.17'\''' >> META_new.yml $(NOECHO) $(ECHO) 'x_serialization_backend: '\''CPAN::Meta::YAML version 0.020'\''' >> META_new.yml -$(NOECHO) $(MV) META_new.yml $(DISTVNAME)/META.yml $(NOECHO) $(ECHO) Generating META.json $(NOECHO) $(ECHO) '{' > META_new.json $(NOECHO) $(ECHO) ' "abstract" : "A switch statement for Perl, do not use if you can use given/when",' >> META_new.json $(NOECHO) $(ECHO) ' "author" : [' >> META_new.json $(NOECHO) $(ECHO) ' "Damian Conway",' >> META_new.json $(NOECHO) $(ECHO) ' "Rafael Garcia-Suarez",' >> META_new.json $(NOECHO) $(ECHO) ' "Alexandr Ciornii"' >> META_new.json $(NOECHO) $(ECHO) ' ],' >> META_new.json $(NOECHO) $(ECHO) ' "dynamic_config" : 1,' >> META_new.json $(NOECHO) $(ECHO) ' "generated_by" : "ExtUtils::MakeMaker version 7.70, CPAN::Meta::Converter version 2.150010",' >> META_new.json $(NOECHO) $(ECHO) ' "license" : [' >> META_new.json $(NOECHO) $(ECHO) ' "perl_5"' >> META_new.json $(NOECHO) $(ECHO) ' ],' >> META_new.json $(NOECHO) $(ECHO) ' "meta-spec" : {' >> META_new.json $(NOECHO) $(ECHO) ' "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",' >> META_new.json $(NOECHO) $(ECHO) ' "version" : 2' >> META_new.json $(NOECHO) $(ECHO) ' },' >> META_new.json $(NOECHO) $(ECHO) ' "name" : "Switch",' >> META_new.json $(NOECHO) $(ECHO) ' "no_index" : {' >> META_new.json $(NOECHO) $(ECHO) ' "directory" : [' >> META_new.json $(NOECHO) $(ECHO) ' "t",' >> META_new.json $(NOECHO) $(ECHO) ' "inc"' >> META_new.json $(NOECHO) $(ECHO) ' ]' >> META_new.json $(NOECHO) $(ECHO) ' },' >> META_new.json $(NOECHO) $(ECHO) ' "prereqs" : {' >> META_new.json $(NOECHO) $(ECHO) ' "build" : {' >> META_new.json $(NOECHO) $(ECHO) ' "requires" : {' >> META_new.json $(NOECHO) $(ECHO) ' "ExtUtils::MakeMaker" : "0"' >> META_new.json $(NOECHO) $(ECHO) ' }' >> META_new.json $(NOECHO) $(ECHO) ' },' >> META_new.json $(NOECHO) $(ECHO) ' "configure" : {' >> META_new.json $(NOECHO) $(ECHO) ' "requires" : {' >> META_new.json $(NOECHO) $(ECHO) ' "ExtUtils::MakeMaker" : "0"' >> META_new.json $(NOECHO) $(ECHO) ' }' >> META_new.json $(NOECHO) $(ECHO) ' },' >> META_new.json $(NOECHO) $(ECHO) ' "runtime" : {' >> META_new.json $(NOECHO) $(ECHO) ' "requires" : {' >> META_new.json $(NOECHO) $(ECHO) ' "Filter::Util::Call" : "0",' >> META_new.json $(NOECHO) $(ECHO) ' "Text::Balanced" : "2",' >> META_new.json $(NOECHO) $(ECHO) ' "if" : "0",' >> META_new.json $(NOECHO) $(ECHO) ' "perl" : "5.005"' >> META_new.json $(NOECHO) $(ECHO) ' }' >> META_new.json $(NOECHO) $(ECHO) ' }' >> META_new.json $(NOECHO) $(ECHO) ' },' >> META_new.json $(NOECHO) $(ECHO) ' "release_status" : "stable",' >> META_new.json $(NOECHO) $(ECHO) ' "resources" : {' >> META_new.json $(NOECHO) $(ECHO) ' "repository" : {' >> META_new.json $(NOECHO) $(ECHO) ' "url" : "http://github.com/chorny/Switch"' >> META_new.json $(NOECHO) $(ECHO) ' }' >> META_new.json $(NOECHO) $(ECHO) ' },' >> META_new.json $(NOECHO) $(ECHO) ' "version" : "2.17",' >> META_new.json $(NOECHO) $(ECHO) ' "x_serialization_backend" : "JSON::PP version 4.16"' >> META_new.json $(NOECHO) $(ECHO) '}' >> META_new.json -$(NOECHO) $(MV) META_new.json $(DISTVNAME)/META.json # --- MakeMaker signature section: signature : cpansign -s # --- MakeMaker dist_basics section: distclean :: realclean distcheck $(NOECHO) $(NOOP) distcheck : $(PERLRUN) "-MExtUtils::Manifest=fullcheck" -e fullcheck skipcheck : $(PERLRUN) "-MExtUtils::Manifest=skipcheck" -e skipcheck manifest : $(PERLRUN) "-MExtUtils::Manifest=mkmanifest" -e mkmanifest veryclean : realclean $(RM_F) *~ */*~ *.orig */*.orig *.bak */*.bak *.old */*.old # --- MakeMaker dist_core section: dist : $(DIST_DEFAULT) $(FIRST_MAKEFILE) $(NOECHO) $(ABSPERLRUN) -l -e 'print '\''Warning: Makefile possibly out of date with $(VERSION_FROM)'\''' \ -e ' if -e '\''$(VERSION_FROM)'\'' and -M '\''$(VERSION_FROM)'\'' < -M '\''$(FIRST_MAKEFILE)'\'';' -- tardist : $(DISTVNAME).tar$(SUFFIX) $(NOECHO) $(NOOP) uutardist : $(DISTVNAME).tar$(SUFFIX) uuencode $(DISTVNAME).tar$(SUFFIX) $(DISTVNAME).tar$(SUFFIX) > $(DISTVNAME).tar$(SUFFIX)_uu $(NOECHO) $(ECHO) 'Created $(DISTVNAME).tar$(SUFFIX)_uu' $(DISTVNAME).tar$(SUFFIX) : distdir $(PREOP) $(TO_UNIX) $(TAR) $(TARFLAGS) $(DISTVNAME).tar $(DISTVNAME) $(RM_RF) $(DISTVNAME) $(COMPRESS) $(DISTVNAME).tar $(NOECHO) $(ECHO) 'Created $(DISTVNAME).tar$(SUFFIX)' $(POSTOP) zipdist : $(DISTVNAME).zip $(NOECHO) $(NOOP) $(DISTVNAME).zip : distdir $(PREOP) $(ZIP) $(ZIPFLAGS) $(DISTVNAME).zip $(DISTVNAME) $(RM_RF) $(DISTVNAME) $(NOECHO) $(ECHO) 'Created $(DISTVNAME).zip' $(POSTOP) shdist : distdir $(PREOP) $(SHAR) $(DISTVNAME) > $(DISTVNAME).shar $(RM_RF) $(DISTVNAME) $(NOECHO) $(ECHO) 'Created $(DISTVNAME).shar' $(POSTOP) # --- MakeMaker distdir section: create_distdir : $(RM_RF) $(DISTVNAME) $(PERLRUN) "-MExtUtils::Manifest=manicopy,maniread" \ -e "manicopy(maniread(),'$(DISTVNAME)', '$(DIST_CP)');" distdir : create_distdir distmeta $(NOECHO) $(NOOP) # --- MakeMaker dist_test section: disttest : distdir cd $(DISTVNAME) && $(ABSPERLRUN) Makefile.PL cd $(DISTVNAME) && $(MAKE) $(PASTHRU) cd $(DISTVNAME) && $(MAKE) test $(PASTHRU) # --- MakeMaker dist_ci section: ci : $(ABSPERLRUN) -MExtUtils::Manifest=maniread -e '@all = sort keys %{ maniread() };' \ -e 'print(qq{Executing $(CI) @all\n});' \ -e 'system(qq{$(CI) @all}) == 0 or die $$!;' \ -e 'print(qq{Executing $(RCS_LABEL) ...\n});' \ -e 'system(qq{$(RCS_LABEL) @all}) == 0 or die $$!;' -- # --- MakeMaker distmeta section: distmeta : create_distdir metafile $(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'exit unless -e q{META.yml};' \ -e 'eval { maniadd({q{META.yml} => q{Module YAML meta-data (added by MakeMaker)}}) }' \ -e ' or die "Could not add META.yml to MANIFEST: $${'\''@'\''}"' -- $(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'exit unless -f q{META.json};' \ -e 'eval { maniadd({q{META.json} => q{Module JSON meta-data (added by MakeMaker)}}) }' \ -e ' or die "Could not add META.json to MANIFEST: $${'\''@'\''}"' -- # --- MakeMaker distsignature section: distsignature : distmeta $(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'eval { maniadd({q{SIGNATURE} => q{Public-key signature (added by MakeMaker)}}) }' \ -e ' or die "Could not add SIGNATURE to MANIFEST: $${'\''@'\''}"' -- $(NOECHO) cd $(DISTVNAME) && $(TOUCH) SIGNATURE cd $(DISTVNAME) && cpansign -s # --- MakeMaker install section: install :: pure_install doc_install $(NOECHO) $(NOOP) install_perl :: pure_perl_install doc_perl_install $(NOECHO) $(NOOP) install_site :: pure_site_install doc_site_install $(NOECHO) $(NOOP) install_vendor :: pure_vendor_install doc_vendor_install $(NOECHO) $(NOOP) pure_install :: pure_$(INSTALLDIRS)_install $(NOECHO) $(NOOP) doc_install :: doc_$(INSTALLDIRS)_install $(NOECHO) $(NOOP) pure__install : pure_site_install $(NOECHO) $(ECHO) INSTALLDIRS not defined, defaulting to INSTALLDIRS=site doc__install : doc_site_install $(NOECHO) $(ECHO) INSTALLDIRS not defined, defaulting to INSTALLDIRS=site pure_perl_install :: all $(NOECHO) umask 022; $(MOD_INSTALL) \ "$(INST_LIB)" "$(DESTINSTALLPRIVLIB)" \ "$(INST_ARCHLIB)" "$(DESTINSTALLARCHLIB)" \ "$(INST_BIN)" "$(DESTINSTALLBIN)" \ "$(INST_SCRIPT)" "$(DESTINSTALLSCRIPT)" \ "$(INST_MAN1DIR)" "$(DESTINSTALLMAN1DIR)" \ "$(INST_MAN3DIR)" "$(DESTINSTALLMAN3DIR)" $(NOECHO) $(WARN_IF_OLD_PACKLIST) \ "$(SITEARCHEXP)/auto/$(FULLEXT)" pure_site_install :: all $(NOECHO) umask 02; $(MOD_INSTALL) \ read "$(SITEARCHEXP)/auto/$(FULLEXT)/.packlist" \ write "$(DESTINSTALLSITEARCH)/auto/$(FULLEXT)/.packlist" \ "$(INST_LIB)" "$(DESTINSTALLSITELIB)" \ "$(INST_ARCHLIB)" "$(DESTINSTALLSITEARCH)" \ "$(INST_BIN)" "$(DESTINSTALLSITEBIN)" \ "$(INST_SCRIPT)" "$(DESTINSTALLSITESCRIPT)" \ "$(INST_MAN1DIR)" "$(DESTINSTALLSITEMAN1DIR)" \ "$(INST_MAN3DIR)" "$(DESTINSTALLSITEMAN3DIR)" $(NOECHO) $(WARN_IF_OLD_PACKLIST) \ "$(PERL_ARCHLIB)/auto/$(FULLEXT)" pure_vendor_install :: all $(NOECHO) umask 022; $(MOD_INSTALL) \ "$(INST_LIB)" "$(DESTINSTALLVENDORLIB)" \ "$(INST_ARCHLIB)" "$(DESTINSTALLVENDORARCH)" \ "$(INST_BIN)" "$(DESTINSTALLVENDORBIN)" \ "$(INST_SCRIPT)" "$(DESTINSTALLVENDORSCRIPT)" \ "$(INST_MAN1DIR)" "$(DESTINSTALLVENDORMAN1DIR)" \ "$(INST_MAN3DIR)" "$(DESTINSTALLVENDORMAN3DIR)" doc_perl_install :: all doc_site_install :: all $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLSITEARCH)/perllocal.pod" -$(NOECHO) umask 02; $(MKPATH) "$(DESTINSTALLSITEARCH)" -$(NOECHO) umask 02; $(DOC_INSTALL) \ "Module" "$(NAME)" \ "installed into" "$(INSTALLSITELIB)" \ LINKTYPE "$(LINKTYPE)" \ VERSION "$(VERSION)" \ EXE_FILES "$(EXE_FILES)" \ >> "$(DESTINSTALLSITEARCH)/perllocal.pod" doc_vendor_install :: all uninstall :: uninstall_from_$(INSTALLDIRS)dirs $(NOECHO) $(NOOP) uninstall_from_perldirs :: uninstall_from_sitedirs :: $(NOECHO) $(UNINSTALL) "$(SITEARCHEXP)/auto/$(FULLEXT)/.packlist" uninstall_from_vendordirs :: # --- MakeMaker force section: # Phony target to force checking subdirectories. FORCE : $(NOECHO) $(NOOP) # --- MakeMaker perldepend section: # --- MakeMaker makefile section: # We take a very conservative approach here, but it's worth it. # We move Makefile to Makefile.old here to avoid gnu make looping. $(FIRST_MAKEFILE) : Makefile.PL $(CONFIGDEP) $(NOECHO) $(ECHO) "Makefile out-of-date with respect to $?" $(NOECHO) $(ECHO) "Cleaning current config before rebuilding Makefile..." -$(NOECHO) $(RM_F) $(MAKEFILE_OLD) -$(NOECHO) $(MV) $(FIRST_MAKEFILE) $(MAKEFILE_OLD) - $(MAKE) $(USEMAKEFILE) $(MAKEFILE_OLD) clean $(DEV_NULL) $(PERLRUN) Makefile.PL $(NOECHO) $(ECHO) "==> Your Makefile has been rebuilt. <==" $(NOECHO) $(ECHO) "==> Please rerun the $(MAKE) command. <==" $(FALSE) # --- MakeMaker staticmake section: # --- MakeMaker makeaperl section --- MAP_TARGET = perl FULLPERL = "/usr/bin/perl" MAP_PERLINC = "-Iblib/arch" "-Iblib/lib" "-I/usr/lib/x86_64-linux-gnu/perl/5.38" "-I/usr/share/perl/5.38" $(MAP_TARGET) :: $(MAKE_APERL_FILE) $(MAKE) $(USEMAKEFILE) $(MAKE_APERL_FILE) $@ $(MAKE_APERL_FILE) : static $(FIRST_MAKEFILE) pm_to_blib $(NOECHO) $(ECHO) Writing \"$(MAKE_APERL_FILE)\" for this $(MAP_TARGET) $(NOECHO) $(PERLRUNINST) \ Makefile.PL DIR="" \ MAKEFILE=$(MAKE_APERL_FILE) LINKTYPE=static \ MAKEAPERL=1 NORECURS=1 CCCDLFLAGS= # --- MakeMaker test section: TEST_VERBOSE=0 TEST_TYPE=test_$(LINKTYPE) TEST_FILE = test.pl TEST_FILES = t/*.t TESTDB_SW = -d testdb :: testdb_$(LINKTYPE) $(NOECHO) $(NOOP) test :: $(TEST_TYPE) $(NOECHO) $(NOOP) # Occasionally we may face this degenerate target: test_ : test_dynamic $(NOECHO) $(NOOP) subdirs-test_dynamic :: dynamic pure_all test_dynamic :: subdirs-test_dynamic PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES) testdb_dynamic :: dynamic pure_all PERL_DL_NONLAZY=1 $(FULLPERLRUN) $(TESTDB_SW) "-I$(INST_LIB)" "-I$(INST_ARCHLIB)" $(TEST_FILE) subdirs-test_static :: static pure_all test_static :: subdirs-test_static PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES) testdb_static :: static pure_all PERL_DL_NONLAZY=1 $(FULLPERLRUN) $(TESTDB_SW) "-I$(INST_LIB)" "-I$(INST_ARCHLIB)" $(TEST_FILE) # --- MakeMaker ppd section: # Creates a PPD (Perl Package Description) for a binary distribution. ppd : $(NOECHO) $(ECHO) '' > Switch.ppd $(NOECHO) $(ECHO) ' A switch statement for Perl, do not use if you can use given/when' >> Switch.ppd $(NOECHO) $(ECHO) ' Damian Conway, Rafael Garcia-Suarez, Alexandr Ciornii' >> Switch.ppd $(NOECHO) $(ECHO) ' ' >> Switch.ppd $(NOECHO) $(ECHO) ' ' >> Switch.ppd $(NOECHO) $(ECHO) ' ' >> Switch.ppd $(NOECHO) $(ECHO) ' ' >> Switch.ppd $(NOECHO) $(ECHO) ' ' >> Switch.ppd $(NOECHO) $(ECHO) ' ' >> Switch.ppd $(NOECHO) $(ECHO) ' ' >> Switch.ppd $(NOECHO) $(ECHO) ' ' >> Switch.ppd $(NOECHO) $(ECHO) '' >> Switch.ppd # --- MakeMaker pm_to_blib section: pm_to_blib : $(FIRST_MAKEFILE) $(TO_INST_PM) $(NOECHO) $(ABSPERLRUN) -MExtUtils::Install -e 'pm_to_blib({@ARGV}, '\''$(INST_LIB)/auto'\'', q[$(PM_FILTER)], '\''$(PERM_DIR)'\'')' -- \ 'Switch.pm' '$(INST_LIB)/Switch.pm' $(NOECHO) $(TOUCH) pm_to_blib # --- MakeMaker selfdocument section: # here so even if top_targets is overridden, these will still be defined # gmake will silently still work if any are .PHONY-ed but nmake won't static :: $(NOECHO) $(NOOP) dynamic :: $(NOECHO) $(NOOP) config :: $(NOECHO) $(NOOP) # --- MakeMaker postamble section: # End. work/1776643671.97879/Switch-2.17/Switch.pm000064400000070215152424177470013002 0ustar00package Switch; use 5.005; use strict; use vars qw($VERSION); use Carp; use if $] >= 5.011, 'deprecate'; $VERSION = '2.17'; # LOAD FILTERING MODULE... use Filter::Util::Call; sub __(); # CATCH ATTEMPTS TO CALL case OUTSIDE THE SCOPE OF ANY switch $::_S_W_I_T_C_H = sub { croak "case/when statement not in switch/given block" }; my $offset; my $fallthrough; my ($Perl5, $Perl6) = (0,0); sub import { $fallthrough = grep /\bfallthrough\b/, @_; $offset = (caller)[2]+1; filter_add({}) unless @_>1 && $_[1] eq 'noimport'; my $pkg = caller; no strict 'refs'; for ( qw( on_defined on_exists ) ) { *{"${pkg}::$_"} = \&$_; } *{"${pkg}::__"} = \&__ if grep /__/, @_; $Perl6 = 1 if grep(/Perl\s*6/i, @_); $Perl5 = 1 if grep(/Perl\s*5/i, @_) || !grep(/Perl\s*6/i, @_); 1; } sub unimport { filter_del() } sub filter { my($self) = @_ ; local $Switch::file = (caller)[1]; my $status = 1; $status = filter_read(1_000_000); return $status if $status<0; $_ = filter_blocks($_,$offset); $_ = "# line $offset\n" . $_ if $offset; undef $offset; return $status; } use Text::Balanced ':ALL'; sub line { my ($pretext,$offset) = @_; ($pretext=~tr/\n/\n/)+($offset||0); } sub is_block { local $SIG{__WARN__}=sub{die$@}; local $^W=1; my $ishash = defined eval 'my $hr='.$_[0]; undef $@; return !$ishash; } my $pod_or_DATA = qr/ ^=[A-Za-z] .*? ^=cut (?![A-Za-z]) .*? $ | ^__(DATA|END)__\n.* /smx; my $casecounter = 1; sub filter_blocks { my ($source, $line) = @_; return $source unless $Perl5 && $source =~ /case|switch/ || $Perl6 && $source =~ /when|given|default/; pos $source = 0; my $text = ""; component: while (pos $source < length $source) { if ($source =~ m/(\G\s*use\s+Switch\b)/gc) { $text .= q{use Switch 'noimport'}; next component; } my @pos = Text::Balanced::_match_quotelike(\$source,qr/\s*/,1,0); if (defined $pos[0]) { my $pre = substr($source,$pos[0],$pos[1]); # matched prefix my $iEol; if( substr($source,$pos[4],$pos[5]) eq '/' && # 1st delimiter substr($source,$pos[2],$pos[3]) eq '' && # no op like 'm' index( substr($source,$pos[16],$pos[17]), 'x' ) == -1 && # no //x ($iEol = index( $source, "\n", $pos[4] )) > 0 && $iEol < $pos[8] ){ # embedded newlines # If this is a pattern, it isn't compatible with Switch. Backup past 1st '/'. pos( $source ) = $pos[6]; $text .= $pre . substr($source,$pos[2],$pos[6]-$pos[2]); } else { $text .= $pre . substr($source,$pos[2],$pos[18]-$pos[2]); } next component; } if ($source =~ m/(\G\s*$pod_or_DATA)/gc) { $text .= $1; next component; } @pos = Text::Balanced::_match_variable(\$source,qr/\s*/); if (defined $pos[0]) { $text .= " " if $pos[0] < $pos[2]; $text .= substr($source,$pos[0],$pos[4]-$pos[0]); next component; } if ($Perl5 && $source =~ m/\G(\n*)(\s*)(switch)\b(?=\s*[(])/gc || $Perl6 && $source =~ m/\G(\n*)(\s*)(given)\b(?=\s*[(])/gc || $Perl6 && $source =~ m/\G(\n*)(\s*)(given)\b(.*)(?=\{)/gc) { my $keyword = $3; my $arg = $4; $text .= $1.$2.'S_W_I_T_C_H: while (1) '; unless ($arg) { @pos = Text::Balanced::_match_codeblock(\$source,qr/\s*/,qr/\(/,qr/\)/,qr/[[{(<]/,qr/[]})>]/,undef) or do { die "Bad $keyword statement (problem in the parentheses?) near $Switch::file line ", line(substr($source,0,pos $source),$line), "\n"; }; $arg = filter_blocks(substr($source,$pos[0],$pos[4]-$pos[0]),line(substr($source,0,$pos[0]),$line)); } $arg =~ s {^\s*[(]\s*%} { ( \\\%} || $arg =~ s {^\s*[(]\s*m\b} { ( qr} || $arg =~ s {^\s*[(]\s*/} { ( qr/} || $arg =~ s {^\s*[(]\s*qw} { ( \\qw}; @pos = Text::Balanced::_match_codeblock(\$source,qr/\s*/,qr/\{/,qr/\}/,qr/\{/,qr/\}/,undef) or do { die "Bad $keyword statement (problem in the code block?) near $Switch::file line ", line(substr($source,0, pos $source), $line), "\n"; }; my $code = filter_blocks(substr($source,$pos[0],$pos[4]-$pos[0]),line(substr($source,0,$pos[0]),$line)); $code =~ s/{/{ local \$::_S_W_I_T_C_H; Switch::switch($arg);/; $text .= $code . 'continue {last}'; next component; } elsif ($Perl5 && $source =~ m/\G(\s*)(case\b)(?!\s*=>)/gc || $Perl6 && $source =~ m/\G(\s*)(when\b)(?!\s*=>)/gc || $Perl6 && $source =~ m/\G(\s*)(default\b)(?=\s*\{)/gc) { my $keyword = $2; $text .= $1 . ($keyword eq "default" ? "if (1)" : "if (Switch::case"); if ($keyword eq "default") { # Nothing to do } elsif (@pos = Text::Balanced::_match_codeblock(\$source,qr/\s*/,qr/\{/,qr/\}/,qr/\{/,qr/\}/,undef)) { my $code = substr($source,$pos[0],$pos[4]-$pos[0]); $text .= " " if $pos[0] < $pos[2]; $text .= "sub " if is_block $code; $text .= filter_blocks($code,line(substr($source,0,$pos[0]),$line)) . ")"; } elsif (@pos = Text::Balanced::_match_codeblock(\$source,qr/\s*/,qr/[[(]/,qr/[])]/,qr/[[({]/,qr/[])}]/,undef)) { my $code = filter_blocks(substr($source,$pos[0],$pos[4]-$pos[0]),line(substr($source,0,$pos[0]),$line)); $code =~ s {^\s*[(]\s*%} { ( \\\%} || $code =~ s {^\s*[(]\s*m\b} { ( qr} || $code =~ s {^\s*[(]\s*/} { ( qr/} || $code =~ s {^\s*[(]\s*qw} { ( \\qw}; $text .= " " if $pos[0] < $pos[2]; $text .= "$code)"; } elsif ($Perl6 && do{@pos = Text::Balanced::_match_variable(\$source,qr/\s*/)}) { my $code = filter_blocks(substr($source,$pos[0],$pos[4]-$pos[0]),line(substr($source,0,$pos[0]),$line)); $code =~ s {^\s*%} { \%} || $code =~ s {^\s*@} { \@}; $text .= " " if $pos[0] < $pos[2]; $text .= "$code)"; } elsif ( @pos = Text::Balanced::_match_quotelike(\$source,qr/\s*/,1,0)) { my $code = substr($source,$pos[2],$pos[18]-$pos[2]); $code = filter_blocks($code,line(substr($source,0,$pos[2]),$line)); $code =~ s {^\s*m} { qr} || $code =~ s {^\s*/} { qr/} || $code =~ s {^\s*qw} { \\qw}; $text .= " " if $pos[0] < $pos[2]; $text .= "$code)"; } elsif ($Perl5 && $source =~ m/\G\s*(([^\$\@{])[^\$\@{]*)(?=\s*{)/gc || $Perl6 && $source =~ m/\G\s*([^;{]*)()/gc) { my $code = filter_blocks($1,line(substr($source,0,pos $source),$line)); $text .= ' \\' if $2 eq '%'; $text .= " $code)"; } else { die "Bad $keyword statement (invalid $keyword value?) near $Switch::file line ", line(substr($source,0,pos $source), $line), "\n"; } die "Missing opening brace or semi-colon after 'when' value near $Switch::file line ", line(substr($source,0,pos $source), $line), "\n" unless !$Perl6 || $source =~ m/\G(\s*)(?=;|\{)/gc; do{@pos = Text::Balanced::_match_codeblock(\$source,qr/\s*/,qr/\{/,qr/\}/,qr/\{/,qr/\}/,undef)} or do { if ($source =~ m/\G\s*(?=([};]|\Z))/gc) { $casecounter++; next component; } die "Bad $keyword statement (problem in the code block?) near $Switch::file line ", line(substr($source,0,pos $source),$line), "\n"; }; my $code = filter_blocks(substr($source,$pos[0],$pos[4]-$pos[0]),line(substr($source,0,$pos[0]),$line)); $code =~ s/}(?=\s*\Z)/;last S_W_I_T_C_H }/ unless $fallthrough; $text .= "{ while (1) $code continue { goto C_A_S_E_$casecounter } last S_W_I_T_C_H; C_A_S_E_$casecounter: }"; $casecounter++; next component; } $source =~ m/\G(\s*(-[sm]\s+|\w+|#.*\n|\W))/gc; $text .= $1; } $text; } sub in { my ($x,$y) = @_; my @numy; for my $nextx ( @$x ) { my $numx = ref($nextx) || defined $nextx && (~$nextx&$nextx) eq 0; for my $j ( 0..$#$y ) { my $nexty = $y->[$j]; push @numy, ref($nexty) || defined $nexty && (~$nexty&$nexty) eq 0 if @numy <= $j; return 1 if $numx && $numy[$j] && $nextx==$nexty || $nextx eq $nexty; } } return ""; } sub on_exists { my $ref = @_==1 && ref($_[0]) eq 'HASH' ? $_[0] : { @_ }; [ keys %$ref ] } sub on_defined { my $ref = @_==1 && ref($_[0]) eq 'HASH' ? $_[0] : { @_ }; [ grep { defined $ref->{$_} } keys %$ref ] } sub switch(;$) { my ($s_val) = @_ ? $_[0] : $_; my $s_ref = ref $s_val; if ($s_ref eq 'CODE') { $::_S_W_I_T_C_H = sub { my $c_val = $_[0]; return $s_val == $c_val if ref $c_val eq 'CODE'; return $s_val->(@$c_val) if ref $c_val eq 'ARRAY'; return $s_val->($c_val); }; } elsif ($s_ref eq "" && defined $s_val && (~$s_val&$s_val) eq 0) # NUMERIC SCALAR { $::_S_W_I_T_C_H = sub { my $c_val = $_[0]; my $c_ref = ref $c_val; return $s_val == $c_val if $c_ref eq "" && defined $c_val && (~$c_val&$c_val) eq 0; return $s_val eq $c_val if $c_ref eq ""; return in([$s_val],$c_val) if $c_ref eq 'ARRAY'; return $c_val->($s_val) if $c_ref eq 'CODE'; return $c_val->call($s_val) if $c_ref eq 'Switch'; return scalar $s_val=~/$c_val/ if $c_ref eq 'Regexp'; return scalar $c_val->{$s_val} if $c_ref eq 'HASH'; return; }; } elsif ($s_ref eq "") # STRING SCALAR { $::_S_W_I_T_C_H = sub { my $c_val = $_[0]; my $c_ref = ref $c_val; return $s_val eq $c_val if $c_ref eq ""; return in([$s_val],$c_val) if $c_ref eq 'ARRAY'; return $c_val->($s_val) if $c_ref eq 'CODE'; return $c_val->call($s_val) if $c_ref eq 'Switch'; return scalar $s_val=~/$c_val/ if $c_ref eq 'Regexp'; return scalar $c_val->{$s_val} if $c_ref eq 'HASH'; return; }; } elsif ($s_ref eq 'ARRAY') { $::_S_W_I_T_C_H = sub { my $c_val = $_[0]; my $c_ref = ref $c_val; return in($s_val,[$c_val]) if $c_ref eq ""; return in($s_val,$c_val) if $c_ref eq 'ARRAY'; return $c_val->(@$s_val) if $c_ref eq 'CODE'; return $c_val->call(@$s_val) if $c_ref eq 'Switch'; return scalar grep {$_=~/$c_val/} @$s_val if $c_ref eq 'Regexp'; return scalar grep {$c_val->{$_}} @$s_val if $c_ref eq 'HASH'; return; }; } elsif ($s_ref eq 'Regexp') { $::_S_W_I_T_C_H = sub { my $c_val = $_[0]; my $c_ref = ref $c_val; return $c_val=~/s_val/ if $c_ref eq ""; return scalar grep {$_=~/s_val/} @$c_val if $c_ref eq 'ARRAY'; return $c_val->($s_val) if $c_ref eq 'CODE'; return $c_val->call($s_val) if $c_ref eq 'Switch'; return $s_val eq $c_val if $c_ref eq 'Regexp'; return grep {$_=~/$s_val/ && $c_val->{$_}} keys %$c_val if $c_ref eq 'HASH'; return; }; } elsif ($s_ref eq 'HASH') { $::_S_W_I_T_C_H = sub { my $c_val = $_[0]; my $c_ref = ref $c_val; return $s_val->{$c_val} if $c_ref eq ""; return scalar grep {$s_val->{$_}} @$c_val if $c_ref eq 'ARRAY'; return $c_val->($s_val) if $c_ref eq 'CODE'; return $c_val->call($s_val) if $c_ref eq 'Switch'; return grep {$_=~/$c_val/ && $s_val->{"$_"}} keys %$s_val if $c_ref eq 'Regexp'; return $s_val==$c_val if $c_ref eq 'HASH'; return; }; } elsif ($s_ref eq 'Switch') { $::_S_W_I_T_C_H = sub { my $c_val = $_[0]; return $s_val == $c_val if ref $c_val eq 'Switch'; return $s_val->call(@$c_val) if ref $c_val eq 'ARRAY'; return $s_val->call($c_val); }; } else { croak "Cannot switch on $s_ref"; } return 1; } sub case($) { local $SIG{__WARN__} = \&carp; $::_S_W_I_T_C_H->(@_); } # IMPLEMENT __ my $placeholder = bless { arity=>1, impl=>sub{$_[1+$_[0]]} }; sub __() { $placeholder } sub __arg($) { my $index = $_[0]+1; bless { arity=>0, impl=>sub{$_[$index]} }; } sub hosub(&@) { # WRITE THIS } sub call { my ($self,@args) = @_; return $self->{impl}->(0,@args); } sub meta_bop(&) { my ($op) = @_; sub { my ($left, $right, $reversed) = @_; ($right,$left) = @_ if $reversed; my $rop = ref $right eq 'Switch' ? $right : bless { arity=>0, impl=>sub{$right} }; my $lop = ref $left eq 'Switch' ? $left : bless { arity=>0, impl=>sub{$left} }; my $arity = $lop->{arity} + $rop->{arity}; return bless { arity => $arity, impl => sub { my $start = shift; return $op->($lop->{impl}->($start,@_), $rop->{impl}->($start+$lop->{arity},@_)); } }; }; } sub meta_uop(&) { my ($op) = @_; sub { my ($left) = @_; my $lop = ref $left eq 'Switch' ? $left : bless { arity=>0, impl=>sub{$left} }; my $arity = $lop->{arity}; return bless { arity => $arity, impl => sub { $op->($lop->{impl}->(@_)) } }; }; } use overload "+" => meta_bop {$_[0] + $_[1]}, "-" => meta_bop {$_[0] - $_[1]}, "*" => meta_bop {$_[0] * $_[1]}, "/" => meta_bop {$_[0] / $_[1]}, "%" => meta_bop {$_[0] % $_[1]}, "**" => meta_bop {$_[0] ** $_[1]}, "<<" => meta_bop {$_[0] << $_[1]}, ">>" => meta_bop {$_[0] >> $_[1]}, "x" => meta_bop {$_[0] x $_[1]}, "." => meta_bop {$_[0] . $_[1]}, "<" => meta_bop {$_[0] < $_[1]}, "<=" => meta_bop {$_[0] <= $_[1]}, ">" => meta_bop {$_[0] > $_[1]}, ">=" => meta_bop {$_[0] >= $_[1]}, "==" => meta_bop {$_[0] == $_[1]}, "!=" => meta_bop {$_[0] != $_[1]}, "<=>" => meta_bop {$_[0] <=> $_[1]}, "lt" => meta_bop {$_[0] lt $_[1]}, "le" => meta_bop {$_[0] le $_[1]}, "gt" => meta_bop {$_[0] gt $_[1]}, "ge" => meta_bop {$_[0] ge $_[1]}, "eq" => meta_bop {$_[0] eq $_[1]}, "ne" => meta_bop {$_[0] ne $_[1]}, "cmp" => meta_bop {$_[0] cmp $_[1]}, "\&" => meta_bop {$_[0] & $_[1]}, "^" => meta_bop {$_[0] ^ $_[1]}, "|" => meta_bop {$_[0] | $_[1]}, "atan2" => meta_bop {atan2 $_[0], $_[1]}, "neg" => meta_uop {-$_[0]}, "!" => meta_uop {!$_[0]}, "~" => meta_uop {~$_[0]}, "cos" => meta_uop {cos $_[0]}, "sin" => meta_uop {sin $_[0]}, "exp" => meta_uop {exp $_[0]}, "abs" => meta_uop {abs $_[0]}, "log" => meta_uop {log $_[0]}, "sqrt" => meta_uop {sqrt $_[0]}, "bool" => sub { croak "Can't use && or || in expression containing __" }, # "&()" => sub { $_[0]->{impl} }, # "||" => meta_bop {$_[0] || $_[1]}, # "&&" => meta_bop {$_[0] && $_[1]}, # fallback => 1, ; 1; __END__ =head1 NAME Switch - A switch statement for Perl, do not use if you can use given/when =head1 SYNOPSIS use Switch; switch ($val) { case 1 { print "number 1" } case "a" { print "string a" } case [1..10,42] { print "number in list" } case (\@array) { print "number in list" } case /\w+/ { print "pattern" } case qr/\w+/ { print "pattern" } case (\%hash) { print "entry in hash" } case (\&sub) { print "arg to subroutine" } else { print "previous case not true" } } =head1 BACKGROUND [Skip ahead to L<"DESCRIPTION"> if you don't care about the whys and wherefores of this control structure] In seeking to devise a "Swiss Army" case mechanism suitable for Perl, it is useful to generalize this notion of distributed conditional testing as far as possible. Specifically, the concept of "matching" between the switch value and the various case values need not be restricted to numeric (or string or referential) equality, as it is in other languages. Indeed, as Table 1 illustrates, Perl offers at least eighteen different ways in which two values could generate a match. Table 1: Matching a switch value ($s) with a case value ($c) Switch Case Type of Match Implied Matching Code Value Value ====== ===== ===================== ============= number same numeric or referential match if $s == $c; or ref equality object method result of method call match if $s->$c(); ref name match if defined $s->$c(); or ref other other string equality match if $s eq $c; non-ref non-ref scalar scalar string regexp pattern match match if $s =~ /$c/; array scalar array entry existence match if 0<=$c && $c<@$s; ref array entry definition match if defined $s->[$c]; array entry truth match if $s->[$c]; array array array intersection match if intersects(@$s, @$c); ref ref (apply this table to all pairs of elements $s->[$i] and $c->[$j]) array regexp array grep match if grep /$c/, @$s; ref hash scalar hash entry existence match if exists $s->{$c}; ref hash entry definition match if defined $s->{$c}; hash entry truth match if $s->{$c}; hash regexp hash grep match if grep /$c/, keys %$s; ref sub scalar return value defn match if defined $s->($c); ref return value truth match if $s->($c); sub array return value defn match if defined $s->(@$c); ref ref return value truth match if $s->(@$c); In reality, Table 1 covers 31 alternatives, because only the equality and intersection tests are commutative; in all other cases, the roles of the C<$s> and C<$c> variables could be reversed to produce a different test. For example, instead of testing a single hash for the existence of a series of keys (C{$c}>), one could test for the existence of a single key in a series of hashes (C{$s}>). =head1 DESCRIPTION The Switch.pm module implements a generalized case mechanism that covers most (but not all) of the numerous possible combinations of switch and case values described above. The module augments the standard Perl syntax with two new control statements: C and C. The C statement takes a single scalar argument of any type, specified in parentheses. C stores this value as the current switch value in a (localized) control variable. The value is followed by a block which may contain one or more Perl statements (including the C statement described below). The block is unconditionally executed once the switch value has been cached. A C statement takes a single scalar argument (in mandatory parentheses if it's a variable; otherwise the parens are optional) and selects the appropriate type of matching between that argument and the current switch value. The type of matching used is determined by the respective types of the switch value and the C argument, as specified in Table 1. If the match is successful, the mandatory block associated with the C statement is executed. In most other respects, the C statement is semantically identical to an C statement. For example, it can be followed by an C clause, and can be used as a postfix statement qualifier. However, when a C block has been executed control is automatically transferred to the statement after the immediately enclosing C block, rather than to the next statement within the block. In other words, the success of any C statement prevents other cases in the same scope from executing. But see L<"Allowing fall-through"> below. Together these two new statements provide a fully generalized case mechanism: use Switch; # AND LATER... %special = ( woohoo => 1, d'oh => 1 ); while (<>) { chomp; switch ($_) { case (%special) { print "homer\n"; } # if $special{$_} case /[a-z]/i { print "alpha\n"; } # if $_ =~ /a-z/i case [1..9] { print "small num\n"; } # if $_ in [1..9] case { $_[0] >= 10 } { print "big num\n"; } # if $_ >= 10 print "must be punctuation\n" case /\W/; # if $_ ~= /\W/ } } Note that Ces can be nested within C (or any other) blocks, and a series of C statements can try different types of matches -- hash membership, pattern match, array intersection, simple equality, etc. -- against the same switch value. The use of intersection tests against an array reference is particularly useful for aggregating integral cases: sub classify_digit { switch ($_[0]) { case 0 { return 'zero' } case [2,4,6,8] { return 'even' } case [1,3,5,7,9] { return 'odd' } case /[A-F]/i { return 'hex' } } } =head2 Allowing fall-through Fall-though (trying another case after one has already succeeded) is usually a Bad Idea in a switch statement. However, this is Perl, not a police state, so there I a way to do it, if you must. If a C block executes an untargeted C, control is immediately transferred to the statement I the C statement (i.e. usually another case), rather than out of the surrounding C block. For example: switch ($val) { case 1 { handle_num_1(); next } # and try next case... case "1" { handle_str_1(); next } # and try next case... case [0..9] { handle_num_any(); } # and we're done case /\d/ { handle_dig_any(); next } # and try next case... case /.*/ { handle_str_any(); next } # and try next case... } If $val held the number C<1>, the above C block would call the first three C subroutines, jumping to the next case test each time it encountered a C. After the third C block was executed, control would jump to the end of the enclosing C block. On the other hand, if $val held C<10>, then only the last two C subroutines would be called. Note that this mechanism allows the notion of I. For example: switch ($val) { case [0..9] { handle_num_any(); next if $val < 7; } case /\d/ { handle_dig_any(); } } If an untargeted C statement is executed in a case block, this immediately transfers control out of the enclosing C block (in other words, there is an implicit C at the end of each normal C block). Thus the previous example could also have been written: switch ($val) { case [0..9] { handle_num_any(); last if $val >= 7; next; } case /\d/ { handle_dig_any(); } } =head2 Automating fall-through In situations where case fall-through should be the norm, rather than an exception, an endless succession of terminal Cs is tedious and ugly. Hence, it is possible to reverse the default behaviour by specifying the string "fallthrough" when importing the module. For example, the following code is equivalent to the first example in L<"Allowing fall-through">: use Switch 'fallthrough'; switch ($val) { case 1 { handle_num_1(); } case "1" { handle_str_1(); } case [0..9] { handle_num_any(); last } case /\d/ { handle_dig_any(); } case /.*/ { handle_str_any(); } } Note the explicit use of a C to preserve the non-fall-through behaviour of the third case. =head2 Alternative syntax Perl 6 will provide a built-in switch statement with essentially the same semantics as those offered by Switch.pm, but with a different pair of keywords. In Perl 6 C will be spelled C, and C will be pronounced C. In addition, the C statement will not require switch or case values to be parenthesized. This future syntax is also (largely) available via the Switch.pm module, by importing it with the argument C<"Perl6">. For example: use Switch 'Perl6'; given ($val) { when 1 { handle_num_1(); } when ($str1) { handle_str_1(); } when [0..9] { handle_num_any(); last } when /\d/ { handle_dig_any(); } when /.*/ { handle_str_any(); } default { handle anything else; } } Note that scalars still need to be parenthesized, since they would be ambiguous in Perl 5. Note too that you can mix and match both syntaxes by importing the module with: use Switch 'Perl5', 'Perl6'; =head2 Higher-order Operations One situation in which C and C do not provide a good substitute for a cascaded C, is where a switch value needs to be tested against a series of conditions. For example: sub beverage { switch (shift) { case { $_[0] < 10 } { return 'milk' } case { $_[0] < 20 } { return 'coke' } case { $_[0] < 30 } { return 'beer' } case { $_[0] < 40 } { return 'wine' } case { $_[0] < 50 } { return 'malt' } case { $_[0] < 60 } { return 'Moet' } else { return 'milk' } } } (This is equivalent to writing C, etc.; C<$_[0]> is the argument to the anonymous subroutine.) The need to specify each condition as a subroutine block is tiresome. To overcome this, when importing Switch.pm, a special "placeholder" subroutine named C<__> [sic] may also be imported. This subroutine converts (almost) any expression in which it appears to a reference to a higher-order function. That is, the expression: use Switch '__'; __ < 2 is equivalent to: sub { $_[0] < 2 } With C<__>, the previous ugly case statements can be rewritten: case __ < 10 { return 'milk' } case __ < 20 { return 'coke' } case __ < 30 { return 'beer' } case __ < 40 { return 'wine' } case __ < 50 { return 'malt' } case __ < 60 { return 'Moet' } else { return 'milk' } The C<__> subroutine makes extensive use of operator overloading to perform its magic. All operations involving __ are overloaded to produce an anonymous subroutine that implements a lazy version of the original operation. The only problem is that operator overloading does not allow the boolean operators C<&&> and C<||> to be overloaded. So a case statement like this: case 0 <= __ && __ < 10 { return 'digit' } doesn't act as expected, because when it is executed, it constructs two higher order subroutines and then treats the two resulting references as arguments to C<&&>: sub { 0 <= $_[0] } && sub { $_[0] < 10 } This boolean expression is inevitably true, since both references are non-false. Fortunately, the overloaded C<'bool'> operator catches this situation and flags it as an error. =head1 DEPENDENCIES The module is implemented using Filter::Util::Call and Text::Balanced and requires both these modules to be installed. =head1 AUTHOR Damian Conway (damian@conway.org). This module is now maintained by Alexandr Ciornii (alexchorny@gmail.com). Previously was maintained by Rafael Garcia-Suarez and perl5 porters. =head1 BUGS There are undoubtedly serious bugs lurking somewhere in code this funky :-) Bug reports and other feedback are most welcome. May create syntax errors in other parts of code. On perl 5.10.x may cause syntax error if "case" is present inside heredoc. In general, use given/when instead. It were introduced in perl 5.10.0. Perl 5.10.0 was released in 2007. =head1 LIMITATIONS Due to the heuristic nature of Switch.pm's source parsing, the presence of regexes with embedded newlines that are specified with raw C delimiters and don't have a modifier C are indistinguishable from code chunks beginning with the division operator C. As a workaround you must use C or C for such patterns. Also, the presence of regexes specified with raw C delimiters may cause mysterious errors. The workaround is to use C instead. Due to the way source filters work in Perl, you can't use Switch inside an string C. May not work if sub prototypes are used (RT#33988). Regex captures in when are not available to code. If your source file is longer then 1 million characters and you have a switch statement that crosses the 1 million (or 2 million, etc.) character boundary you will get mysterious errors. The workaround is to use smaller source files. =head1 COPYRIGHT Copyright (c) 1997-2008, Damian Conway. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself. work/1776643671.97879/Switch-2.17/META.yml000064400000001250152424177470012445 0ustar00--- abstract: 'A switch statement for Perl, do not use if you can use given/when' author: - Damian Conway - Rafael Garcia-Suarez - Alexandr Ciornii build_requires: ExtUtils::MakeMaker: 0 configure_requires: ExtUtils::MakeMaker: 0 dynamic_config: 1 generated_by: 'ExtUtils::MakeMaker version 6.78, CPAN::Meta::Converter version 2.131490' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 name: Switch no_index: directory: - t - inc requires: Filter::Util::Call: 0 Text::Balanced: 2 if: 0 perl: 5.005 resources: repository: http://github.com/chorny/Switch version: 2.17 work/1776643671.97879/Switch-2.17/MANIFEST000064400000000362152424177470012330 0ustar00Changes MANIFEST Makefile.PL README Switch.pm t/given.t t/nested.t t/switch.t META.yml Module meta-data (added by MakeMaker) META.json Module JSON meta-data (added by MakeMaker) work/1776643671.97879/Switch-2.17/pm_to_blib000064400000000000152424177470013215 0ustar00work/1776643671.97879/Switch-2.17/MYMETA.yml000064400000001403152424177470012713 0ustar00--- abstract: 'A switch statement for Perl, do not use if you can use given/when' author: - 'Damian Conway' - 'Rafael Garcia-Suarez' - 'Alexandr Ciornii' build_requires: ExtUtils::MakeMaker: '0' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 generated_by: 'ExtUtils::MakeMaker version 6.78, CPAN::Meta::Converter version 2.131490, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Switch no_index: directory: - t - inc requires: Filter::Util::Call: '0' Text::Balanced: '2' if: '0' perl: '5.005' resources: repository: http://github.com/chorny/Switch version: '2.17' x_serialization_backend: 'CPAN::Meta::YAML version 0.020' work/1776643671.97879/Switch-2.17/t/switch.t000064400000015550152424177470013135 0ustar00use Carp; use Switch qw(__ fallthrough); my($C,$M);sub ok{$C++;$M.=$_[0]?"ok $C\n":"not ok $C (line ".(caller)[2].")\n"} END{print"1..$C\n$M"} # NON-case THINGS; $case->{case} = { case => "case" }; *case = \&case; # PREMATURE case eval { case 1 { ok(0) }; ok(0) } || ok(1); # H.O. FUNCS switch (__ > 2) { case 1 { ok(0) } else { ok(1) } case 2 { ok(0) } else { ok(1) } case 3 { ok(1) } else { ok(0) } } switch (3) { eval { case __ <= 1 || __ > 2 { ok(0) } } || ok(1); case __ <= 2 { ok(0) }; case __ <= 3 { ok(1) }; } # POSSIBLE ARGS: NUMERIC, STRING, ARRAY, HASH, REGEX, CODE # 1. NUMERIC SWITCH for (1..3) { switch ($_) { # SELF case ($_) { ok(1) } else { ok(0) } # NUMERIC case (1) { ok ($_==1) } else { ok($_!=1) } case 1 { ok ($_==1) } else { ok($_!=1) } case (3) { ok ($_==3) } else { ok($_!=3) } case (4) { ok (0) } else { ok(1) } case (2) { ok ($_==2) } else { ok($_!=2) } # STRING case ('a') { ok (0) } else { ok(1) } case 'a' { ok (0) } else { ok(1) } case ('3') { ok ($_ == 3) } else { ok($_ != 3) } case ('3.0') { ok (0) } else { ok(1) } # ARRAY case ([10,5,1]) { ok ($_==1) } else { ok($_!=1) } case [10,5,1] { ok ($_==1) } else { ok($_!=1) } case (['a','b']) { ok (0) } else { ok(1) } case (['a','b',3]) { ok ($_==3) } else { ok ($_!=3) } case (['a','b',2.0]) { ok ($_==2) } else { ok ($_!=2) } case ([]) { ok (0) } else { ok(1) } # HASH case ({}) { ok (0) } else { ok (1) } case {} { ok (0) } else { ok (1) } case {1,1} { ok ($_==1) } else { ok($_!=1) } case ({1=>1, 2=>0}) { ok ($_==1) } else { ok($_!=1) } # SUB/BLOCK case (sub {$_[0]==2}) { ok ($_==2) } else { ok($_!=2) } case {$_[0]==2} { ok ($_==2) } else { ok($_!=2) } case {0} { ok (0) } else { ok (1) } # ; -> SUB, NOT HASH case {1} { ok (1) } else { ok (0) } # ; -> SUB, NOT HASH } } # 2. STRING SWITCH for ('a'..'c','1') { switch ($_) { # SELF case ($_) { ok(1) } else { ok(0) } # NUMERIC case (1) { ok ($_ !~ /[a-c]/) } else { ok ($_ =~ /[a-c]/) } case (1.0) { ok ($_ !~ /[a-c]/) } else { ok ($_ =~ /[a-c]/) } # STRING case ('a') { ok ($_ eq 'a') } else { ok($_ ne 'a') } case ('b') { ok ($_ eq 'b') } else { ok($_ ne 'b') } case ('c') { ok ($_ eq 'c') } else { ok($_ ne 'c') } case ('1') { ok ($_ eq '1') } else { ok($_ ne '1') } case ('d') { ok (0) } else { ok (1) } # ARRAY case (['a','1']) { ok ($_ eq 'a' || $_ eq '1') } else { ok ($_ ne 'a' && $_ ne '1') } case (['z','2']) { ok (0) } else { ok(1) } case ([]) { ok (0) } else { ok(1) } # HASH case ({}) { ok (0) } else { ok (1) } case ({a=>'a', 1=>1, 2=>0}) { ok ($_ eq 'a' || $_ eq '1') } else { ok ($_ ne 'a' && $_ ne '1') } # SUB/BLOCK case (sub{$_[0] eq 'a' }) { ok ($_ eq 'a') } else { ok($_ ne 'a') } case {$_[0] eq 'a'} { ok ($_ eq 'a') } else { ok($_ ne 'a') } case {0} { ok (0) } else { ok (1) } # ; -> SUB, NOT HASH case {1} { ok (1) } else { ok (0) } # ; -> SUB, NOT HASH } } # 3. ARRAY SWITCH my $iteration = 0; for ([],[1,'a'],[2,'b']) { switch ($_) { $iteration++; # SELF case ($_) { ok(1) } # NUMERIC case (1) { ok ($iteration==2) } else { ok ($iteration!=2) } case (1.0) { ok ($iteration==2) } else { ok ($iteration!=2) } # STRING case ('a') { ok ($iteration==2) } else { ok ($iteration!=2) } case ('b') { ok ($iteration==3) } else { ok ($iteration!=3) } case ('1') { ok ($iteration==2) } else { ok ($iteration!=2) } # ARRAY case (['a',2]) { ok ($iteration>=2) } else { ok ($iteration<2) } case ([1,'a']) { ok ($iteration==2) } else { ok($iteration!=2) } case ([]) { ok (0) } else { ok(1) } case ([7..100]) { ok (0) } else { ok(1) } # HASH case ({}) { ok (0) } else { ok (1) } case ({a=>'a', 1=>1, 2=>0}) { ok ($iteration==2) } else { ok ($iteration!=2) } # SUB/BLOCK case {scalar grep /a/, @_} { ok ($iteration==2) } else { ok ($iteration!=2) } case (sub {scalar grep /a/, @_ }) { ok ($iteration==2) } else { ok ($iteration!=2) } case {0} { ok (0) } else { ok (1) } # ; -> SUB, NOT HASH case {1} { ok (1) } else { ok (0) } # ; -> SUB, NOT HASH } } # 4. HASH SWITCH $iteration = 0; for ({},{a=>1,b=>0}) { switch ($_) { $iteration++; # SELF case ($_) { ok(1) } else { ok(0) } # NUMERIC case (1) { ok (0) } else { ok (1) } case (1.0) { ok (0) } else { ok (1) } # STRING case ('a') { ok ($iteration==2) } else { ok ($iteration!=2) } case ('b') { ok (0) } else { ok (1) } case ('c') { ok (0) } else { ok (1) } # ARRAY case (['a',2]) { ok ($iteration==2) } else { ok ($iteration!=2) } case (['b','a']) { ok ($iteration==2) } else { ok ($iteration!=2) } case (['b','c']) { ok (0) } else { ok (1) } case ([]) { ok (0) } else { ok(1) } case ([7..100]) { ok (0) } else { ok(1) } # HASH case ({}) { ok (0) } else { ok (1) } case ({a=>'a', 1=>1, 2=>0}) { ok (0) } else { ok (1) } # SUB/BLOCK case {$_[0]{a}} { ok ($iteration==2) } else { ok ($iteration!=2) } case (sub {$_[0]{a}}) { ok ($iteration==2) } else { ok ($iteration!=2) } case {0} { ok (0) } else { ok (1) } # ; -> SUB, NOT HASH case {1} { ok (1) } else { ok (0) } # ; -> SUB, NOT HASH } } # 5. CODE SWITCH $iteration = 0; for ( sub {1}, sub { return 0 unless @_; my ($data) = @_; my $type = ref $data; return $type eq 'HASH' && $data->{a} || $type eq 'Regexp' && 'a' =~ /$data/ || $type eq "" && $data eq '1'; }, sub {0} ) { switch ($_) { $iteration++; # SELF case ($_) { ok(1) } else { ok(0) } # NUMERIC case (1) { ok ($iteration<=2) } else { ok ($iteration>2) } case (1.0) { ok ($iteration<=2) } else { ok ($iteration>2) } case (1.1) { ok ($iteration==1) } else { ok ($iteration!=1) } # STRING case ('a') { ok ($iteration==1) } else { ok ($iteration!=1) } case ('b') { ok ($iteration==1) } else { ok ($iteration!=1) } case ('c') { ok ($iteration==1) } else { ok ($iteration!=1) } case ('1') { ok ($iteration<=2) } else { ok ($iteration>2) } # ARRAY case ([1, 'a']) { ok ($iteration<=2) } else { ok ($iteration>2) } case (['b','a']) { ok ($iteration==1) } else { ok ($iteration!=1) } case (['b','c']) { ok ($iteration==1) } else { ok ($iteration!=1) } case ([]) { ok ($iteration==1) } else { ok($iteration!=1) } case ([7..100]) { ok ($iteration==1) } else { ok($iteration!=1) } # HASH case ({}) { ok ($iteration==1) } else { ok ($iteration!=1) } case ({a=>'a', 1=>1, 2=>0}) { ok ($iteration<=2) } else { ok ($iteration>2) } # SUB/BLOCK case {$_[0]->{a}} { ok (0) } else { ok (1) } case (sub {$_[0]{a}}) { ok (0) } else { ok (1) } case {0} { ok (0) } else { ok (1) } # ; -> SUB, NOT HASH case {1} { ok (0) } else { ok (1) } # ; -> SUB, NOT HASH } } # NESTED SWITCHES for my $count (1..3) { switch ([9,"a",11]) { case (qr/\d/) { switch ($count) { case (1) { ok($count==1) } else { ok($count!=1) } case ([5,6]) { ok(0) } else { ok(1) } } } ok(1) case (11); } } work/1776643671.97879/Switch-2.17/t/nested.t000064400000000606152424177470013112 0ustar00use Switch; print "1..4\n"; my $count = 1; for my $count (1..3, 'four') { switch ([$count]) { =pod =head1 Test We also test if Switch is POD-friendly here =cut case qr/\d/ { switch ($count) { case 1 { print "ok 1\n" } case [2,3] { print "ok $count\n" } } } case 'four' { print "ok 4\n" } } } __END__ =head1 Another test Still friendly??? =cut work/1776643671.97879/Switch-2.17/t/given.t000064400000015672152424177470012751 0ustar00use Carp; use Switch qw(Perl6 __ fallthrough); my($C,$M);sub ok{$C++;$M.=$_[0]?"ok $C\n":"not ok $C (line ".(caller)[2].")\n"} END{print"1..$C\n$M"} # NON-when THINGS; $when->{when} = { when => "when" }; *when = \&when; # PREMATURE when eval { when 1 { ok(0) }; ok(0) } || ok(1); # H.O. FUNCS given 2 { when __ < 1 { ok(0) } else { ok(1) } when __ < 2 { ok(0) } else { ok(1) } when __ < 3 { ok(1) } else { ok(0) } } given (3) { eval { when __ <= 1 || __ > 2 { ok(0) } } || ok(1); when __ <= 2 { ok(0) }; when __ <= 3 { ok(1) }; } # POSSIBLE ARGS: NUMERIC, STRING, ARRAY, HASH, REGEX, CODE # 1. NUMERIC SWITCH for (1..3) { given ($_) { # SELF when ($_) { ok(1) } else { ok(0) } # NUMERIC when 1 { ok ($_==1) } else { ok($_!=1) } when (1) { ok ($_==1) } else { ok($_!=1) } when 3 { ok ($_==3) } else { ok($_!=3) } when (4) { ok (0) } else { ok(1) } when (2) { ok ($_==2) } else { ok($_!=2) } # STRING when ('a') { ok (0) } else { ok(1) } when 'a' { ok (0) } else { ok(1) } when ('3') { ok ($_ == 3) } else { ok($_ != 3) } when ('3.0') { ok (0) } else { ok(1) } # ARRAY when ([10,5,1]) { ok ($_==1) } else { ok($_!=1) } when [10,5,1] { ok ($_==1) } else { ok($_!=1) } when (['a','b']) { ok (0) } else { ok(1) } when (['a','b',3]) { ok ($_==3) } else { ok ($_!=3) } when (['a','b',2.0]) { ok ($_==2) } else { ok ($_!=2) } when ([]) { ok (0) } else { ok(1) } # HASH when ({}) { ok (0) } else { ok (1) } when {} { ok (0) } else { ok (1) } when {1,1} { ok ($_==1) } else { ok($_!=1) } when ({1=>1, 2=>0}) { ok ($_==1) } else { ok($_!=1) } # SUB/BLOCK when (sub {$_[0]==2}) { ok ($_==2) } else { ok($_!=2) } when {$_[0]==2} { ok ($_==2) } else { ok($_!=2) } when {0} { ok (0) } else { ok (1) } # ; -> SUB, NOT HASH when {1} { ok (1) } else { ok (0) } # ; -> SUB, NOT HASH } } # 2. STRING SWITCH for ('a'..'c','1') { given ($_) { # SELF when ($_) { ok(1) } else { ok(0) } # NUMERIC when (1) { ok ($_ !~ /[a-c]/) } else { ok ($_ =~ /[a-c]/) } when (1.0) { ok ($_ !~ /[a-c]/) } else { ok ($_ =~ /[a-c]/) } # STRING when ('a') { ok ($_ eq 'a') } else { ok($_ ne 'a') } when ('b') { ok ($_ eq 'b') } else { ok($_ ne 'b') } when ('c') { ok ($_ eq 'c') } else { ok($_ ne 'c') } when ('1') { ok ($_ eq '1') } else { ok($_ ne '1') } when ('d') { ok (0) } else { ok (1) } # ARRAY when (['a','1']) { ok ($_ eq 'a' || $_ eq '1') } else { ok ($_ ne 'a' && $_ ne '1') } when (['z','2']) { ok (0) } else { ok(1) } when ([]) { ok (0) } else { ok(1) } # HASH when ({}) { ok (0) } else { ok (1) } when ({a=>'a', 1=>1, 2=>0}) { ok ($_ eq 'a' || $_ eq '1') } else { ok ($_ ne 'a' && $_ ne '1') } # SUB/BLOCK when (sub{$_[0] eq 'a' }) { ok ($_ eq 'a') } else { ok($_ ne 'a') } when {$_[0] eq 'a'} { ok ($_ eq 'a') } else { ok($_ ne 'a') } when {0} { ok (0) } else { ok (1) } # ; -> SUB, NOT HASH when {1} { ok (1) } else { ok (0) } # ; -> SUB, NOT HASH } } # 3. ARRAY SWITCH my $iteration = 0; for ([],[1,'a'],[2,'b']) { given ($_) { $iteration++; # SELF when ($_) { ok(1) } # NUMERIC when (1) { ok ($iteration==2) } else { ok ($iteration!=2) } when (1.0) { ok ($iteration==2) } else { ok ($iteration!=2) } # STRING when ('a') { ok ($iteration==2) } else { ok ($iteration!=2) } when ('b') { ok ($iteration==3) } else { ok ($iteration!=3) } when ('1') { ok ($iteration==2) } else { ok ($iteration!=2) } # ARRAY when (['a',2]) { ok ($iteration>=2) } else { ok ($iteration<2) } when ([1,'a']) { ok ($iteration==2) } else { ok($iteration!=2) } when ([]) { ok (0) } else { ok(1) } when ([7..100]) { ok (0) } else { ok(1) } # HASH when ({}) { ok (0) } else { ok (1) } when ({a=>'a', 1=>1, 2=>0}) { ok ($iteration==2) } else { ok ($iteration!=2) } # SUB/BLOCK when {scalar grep /a/, @_} { ok ($iteration==2) } else { ok ($iteration!=2) } when (sub {scalar grep /a/, @_ }) { ok ($iteration==2) } else { ok ($iteration!=2) } when {0} { ok (0) } else { ok (1) } # ; -> SUB, NOT HASH when {1} { ok (1) } else { ok (0) } # ; -> SUB, NOT HASH } } # 4. HASH SWITCH $iteration = 0; for ({},{a=>1,b=>0}) { given ($_) { $iteration++; # SELF when ($_) { ok(1) } else { ok(0) } # NUMERIC when (1) { ok (0) } else { ok (1) } when (1.0) { ok (0) } else { ok (1) } # STRING when ('a') { ok ($iteration==2) } else { ok ($iteration!=2) } when ('b') { ok (0) } else { ok (1) } when ('c') { ok (0) } else { ok (1) } # ARRAY when (['a',2]) { ok ($iteration==2) } else { ok ($iteration!=2) } when (['b','a']) { ok ($iteration==2) } else { ok ($iteration!=2) } when (['b','c']) { ok (0) } else { ok (1) } when ([]) { ok (0) } else { ok(1) } when ([7..100]) { ok (0) } else { ok(1) } # HASH when ({}) { ok (0) } else { ok (1) } when ({a=>'a', 1=>1, 2=>0}) { ok (0) } else { ok (1) } # SUB/BLOCK when {$_[0]{a}} { ok ($iteration==2) } else { ok ($iteration!=2) } when (sub {$_[0]{a}}) { ok ($iteration==2) } else { ok ($iteration!=2) } when {0} { ok (0) } else { ok (1) } # ; -> SUB, NOT HASH when {1} { ok (1) } else { ok (0) } # ; -> SUB, NOT HASH } } # 5. CODE SWITCH $iteration = 0; for ( sub {1}, sub { return 0 unless @_; my ($data) = @_; my $type = ref $data; return $type eq 'HASH' && $data->{a} || $type eq 'Regexp' && 'a' =~ /$data/ || $type eq "" && $data eq '1'; }, sub {0} ) { given ($_) { $iteration++; # SELF when ($_) { ok(1) } else { ok(0) } # NUMERIC when (1) { ok ($iteration<=2) } else { ok ($iteration>2) } when (1.0) { ok ($iteration<=2) } else { ok ($iteration>2) } when (1.1) { ok ($iteration==1) } else { ok ($iteration!=1) } # STRING when ('a') { ok ($iteration==1) } else { ok ($iteration!=1) } when ('b') { ok ($iteration==1) } else { ok ($iteration!=1) } when ('c') { ok ($iteration==1) } else { ok ($iteration!=1) } when ('1') { ok ($iteration<=2) } else { ok ($iteration>2) } # ARRAY when ([1, 'a']) { ok ($iteration<=2) } else { ok ($iteration>2) } when (['b','a']) { ok ($iteration==1) } else { ok ($iteration!=1) } when (['b','c']) { ok ($iteration==1) } else { ok ($iteration!=1) } when ([]) { ok ($iteration==1) } else { ok($iteration!=1) } when ([7..100]) { ok ($iteration==1) } else { ok($iteration!=1) } # HASH when ({}) { ok ($iteration==1) } else { ok ($iteration!=1) } when ({a=>'a', 1=>1, 2=>0}) { ok ($iteration<=2) } else { ok ($iteration>2) } # SUB/BLOCK when {$_[0]->{a}} { ok (0) } else { ok (1) } when (sub {$_[0]{a}}) { ok (0) } else { ok (1) } when {0} { ok (0) } else { ok (1) } # ; -> SUB, NOT HASH when {1} { ok (0) } else { ok (1) } # ; -> SUB, NOT HASH } } # NESTED SWITCHES for my $count (1..3) { given ([9,"a",11]) { when (qr/\d/) { given ($count) { when (1) { ok($count==1) } else { ok($count!=1) } when ([5,6]) { ok(0) } else { ok(1) } } } ok(1) when 11; } } work/1776643671.97879/Switch-2.17/META.json000064400000002260152424177470012617 0ustar00{ "abstract" : "A switch statement for Perl, do not use if you can use given/when", "author" : [ "Damian Conway", "Rafael Garcia-Suarez", "Alexandr Ciornii" ], "dynamic_config" : 1, "generated_by" : "ExtUtils::MakeMaker version 6.78, CPAN::Meta::Converter version 2.131490", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Switch", "no_index" : { "directory" : [ "t", "inc" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "runtime" : { "requires" : { "Filter::Util::Call" : "0", "Text::Balanced" : "2", "if" : "0", "perl" : "5.005" } } }, "release_status" : "stable", "resources" : { "repository" : { "url" : "http://github.com/chorny/Switch" } }, "version" : "2.17" } work/1776643671.97879/Switch-2.17/Changes000064400000006167152424177470012503 0ustar00Revision history for Perl extension Switch. 0.01 Wed Dec 15 05:58:01 1999 - original version; created by h2xs 1.18 2.00 Mon Jan 8 17:12:20 2001 - Complete revamp (including syntactic and semantic changes) in line with proposed Perl 6 semantics. 2.01 Tue Jan 9 07:19:02 2001 - Fixed infinite loop problem under 5.6.0 caused by change in goto semantics between 5.00503 and 5.6.0 (thanks Scott!) 2.02 Thu Apr 26 12:01:06 2001 - Fixed unwarranted whitespace squeezing before quotelikes (thanks Ray) - Fixed pernicious bug that cause switch to fail to recognize certain complex switch values 2.03 Tue May 15 09:34:11 2001 - Fixed bug in 'fallthrough' specifications. - Silenced gratuitous warnings for undefined values as switch or case values 2.04 Mon Jul 30 13:17:35 2001 - Suppressed 'undef value' warning under -w (thanks Michael) - Added support for Perl 6 given..when syntax 2.05 Mon Sep 3 08:13:25 2001 - Changed licence for inclusion in core distribution - Added new test file for non-fallthrough and nested switches 2.06 Wed Nov 14 16:18:54 2001 - Fixed parsing of ternary operators in Switch'ed source code (at the expense of no longer correctly parsing ?...? regexes) (thanks Mark) - Fixed the parsing of embedded POD (thanks Brent) - Fixed bug encountered when -s or -m file test used (thanks Jochen) 2.07 Wed May 15 15:19:28 2002 - Corified tests - Updated "Perl6" syntax to reflect current design (as far as possible -- can't eliminate need to parenthesize variables, since they're ambiguous in Perl 5) 2.09 Wed Jun 12 22:13:30 2002 - Removed spurious debugging statement 2.10 Mon Dec 29 2003 - Introduce the "default" keyword for the Perl 6 syntax - Raise the limitation on source file length to 1 million characters 2.11 Wed Nov 22 2006 - Fix documentation issues - Fix installation directory for perls >= 5.7.3 (Slaven Rezic) 2.12 Mon Dec 11 2006 - Fix bug in parsing POD at end of document (Valentin Guignon) 2.13 Sun Feb 25 2007 - Fix bug in parsing division statements (Wolfgang Laun) 2.14 Mon Dec 29 2008 - Make Switch.pm skip POD like perl does Patch provided by Daniel Klein (bleadperl commit 39bcdda02ea582e7bdf8b0cf2e7186e89c6baea9) - Fix line numbering issues with POD filtered by Switch.pm Patch provided by Daniel Klein (bleadperl commit 6a9befb105d93024902eb178dab77655333f1829) - Switch.pm doesn't appear to support plain arrays and hashes in case(). (bleadperl commit cd3d9d47255d3080961ba7b58c9a145c7b45b905) - Let us direct Switch questions to P5P. (bleadperl commit b62fb10ea98565ce5572416500e1e3517cb17d33) - POD nits from Frank Wiegand (bleadperl commit 3b46207fed7bf69caa32c27c04bd239cfb64cb53) 2.15 Tue Oct 20 2009 - Deprecate shipping Switch.pm in the core distribution. (Nicholas Clark) 2.16 Fri Oct 23 2009 - For Perl 5.11+, install into 'site', not 'perl' 2.17 2014-03-18 - tests fixed - patch by Father Chrysostomos - many warnings - recommendation to use given/when work/1776643671.97879/Switch-2.17/Makefile.PL000064400000004106152424177470013151 0ustar00use ExtUtils::MakeMaker; WriteMakefile1( LICENSE => 'perl', MIN_PERL_VERSION => '5.005', META_MERGE => { resources => { repository => 'http://github.com/chorny/Switch', }, }, #BUILD_REQUIRES => { #}, NAME => q[Switch], VERSION_FROM => q[Switch.pm], ABSTRACT_FROM => => q[Switch.pm], AUTHOR => ['Damian Conway', 'Rafael Garcia-Suarez', 'Alexandr Ciornii'], PREREQ_PM => { 'Filter::Util::Call' => 0, 'Text::Balanced' => 2, 'if' => 0, }, INSTALLDIRS => ($] >= 5.00703 && $] < 5.011) ? 'perl' : 'site', $^O =~/win/i ? ( dist => { TAR => 'ptar', TARFLAGS => '-c -C -f', }, ) : (), ); sub WriteMakefile1 { #Compatibility code for old versions of EU::MM. Written by Alexandr Ciornii, version 0.23. Added by eumm-upgrade. my %params=@_; my $eumm_version=$ExtUtils::MakeMaker::VERSION; $eumm_version=eval $eumm_version; die "EXTRA_META is deprecated" if exists $params{EXTRA_META}; die "License not specified" if not exists $params{LICENSE}; if ($params{AUTHOR} and ref($params{AUTHOR}) eq 'ARRAY' and $eumm_version < 6.5705) { $params{META_ADD}->{author}=$params{AUTHOR}; $params{AUTHOR}=join(', ',@{$params{AUTHOR}}); } if ($params{TEST_REQUIRES} and $eumm_version < 6.64) { $params{BUILD_REQUIRES}={ %{$params{BUILD_REQUIRES} || {}} , %{$params{TEST_REQUIRES}} }; delete $params{TEST_REQUIRES}; } if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) { #EUMM 6.5502 has problems with BUILD_REQUIRES $params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} }; delete $params{BUILD_REQUIRES}; } delete $params{CONFIGURE_REQUIRES} if $eumm_version < 6.52; delete $params{MIN_PERL_VERSION} if $eumm_version < 6.48; delete $params{META_MERGE} if $eumm_version < 6.46; delete $params{META_ADD} if $eumm_version < 6.46; delete $params{LICENSE} if $eumm_version < 6.31; WriteMakefile(%params); } work/1776643671.97868/build.log000064400000001211152424177470011143 0ustar00cpanm (App::cpanminus) 1.9019 on perl 5.038002 built for x86_64-linux-gnu-thread-multi Work directory is /.cpanm/work/1776643671.97868 You have make /usr/bin/make You have LWP: 6.76 You have LWP::Protocol::https: 6.13 You have /usr/bin/tar: tar (GNU tar) 1.35 Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. You have /usr/bin/unzip Searching JSON::XS () on cpanmetadb ... JSON::XS is up to date. (4.04) work/1776643672.97974/build.log000064400000003007152424177470011147 0ustar00cpanm (App::cpanminus) 1.9019 on perl 5.038002 built for x86_64-linux-gnu-thread-multi Work directory is /.cpanm/work/1776643672.97974 You have make /usr/bin/make You have LWP: 6.76 You have LWP::Protocol::https: 6.13 You have /usr/bin/tar: tar (GNU tar) 1.35 Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. You have /usr/bin/unzip Searching LWP::Protocol::https () on cpanmetadb ... --> Working on LWP::Protocol::https Fetching http://www.cpan.org/authors/id/O/OA/OALDERS/LWP-Protocol-https-6.15.tar.gz -> OK Unpacking LWP-Protocol-https-6.15.tar.gz Entering LWP-Protocol-https-6.15 Checking configure dependencies from META.json Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.70) Configuring LWP-Protocol-https-6.15 Running Makefile.PL -> OK Checking dependencies from MYMETA.json ... Checking if you have strict 0 ... Yes (1.12) Checking if you have base 0 ... Yes (2.27) Checking if you have LWP::Protocol::http 0 ... Yes (6.76) Checking if you have Net::HTTPS 6 ... Yes (6.23) Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.70) Checking if you have LWP::UserAgent 6.06 ... Yes (6.76) Checking if you have IO::Socket::SSL 1.970 ... Yes (2.085) Building LWP-Protocol-https-6.15 -> OK Successfully installed LWP-Protocol-https-6.15 (upgraded from 6.13) 1 distribution installed work/1776643672.97974/LWP-Protocol-https-6.15/blib/script/.exists000064400000000000152424177470017057 0ustar00work/1776643672.97974/LWP-Protocol-https-6.15/blib/arch/auto/LWP/Protocol/https/.exists000064400000000000152424177470023045 0ustar00work/1776643672.97974/LWP-Protocol-https-6.15/blib/arch/.exists000064400000000000152424177470016470 0ustar00work/1776643672.97974/LWP-Protocol-https-6.15/blib/meta/MYMETA.json000064400000061734152424177470017075 0ustar00{ "abstract" : "Provide https support for LWP::UserAgent", "author" : [ "Gisle Aas " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 6.033, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "LWP-Protocol-https", "no_index" : { "directory" : [ "t", "xt" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" }, "suggests" : { "JSON::PP" : "2.27300" } }, "develop" : { "recommends" : { "Dist::Zilla::PluginBundle::Git::VersionManager" : "0.007" }, "requires" : { "Capture::Tiny" : "0.48", "File::Spec" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", "Pod::Coverage::TrustPod" : "0", "Test::CPAN::Changes" : "0.19", "Test::CPAN::Meta" : "0", "Test::CheckManifest" : "1.29", "Test::CleanNamespaces" : "0.15", "Test::EOL" : "0", "Test::Kwalitee" : "1.22", "Test::MinimumVersion" : "0", "Test::Mojibake" : "0", "Test::More" : "0.94", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08", "Test::Pod::Spelling::CommonMistakes" : "1.000", "Test::Portability::Files" : "0", "Test::Spelling" : "0.17", "Test::Version" : "1" } }, "runtime" : { "requires" : { "IO::Socket::SSL" : "1.970", "LWP::Protocol::http" : "0", "LWP::UserAgent" : "6.06", "Net::HTTPS" : "6", "base" : "0", "perl" : "5.008001", "strict" : "0" } }, "test" : { "recommends" : { "CPAN::Meta" : "2.120900" }, "requires" : { "ExtUtils::MakeMaker" : "0", "File::Spec" : "0", "File::Temp" : "0", "IO::Select" : "0", "IO::Socket::INET" : "0", "IO::Socket::SSL" : "1.970", "IO::Socket::SSL::Utils" : "0", "LWP::UserAgent" : "6.06", "Socket" : "0", "Test::More" : "0.96", "Test::Needs" : "0.002010", "Test::RequiresInternet" : "0", "warnings" : "0" } } }, "provides" : { "LWP::Protocol::https" : { "file" : "lib/LWP/Protocol/https.pm", "version" : "6.15" }, "LWP::Protocol::https::Socket" : { "file" : "lib/LWP/Protocol/https.pm", "version" : "6.15" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/libwww-perl/LWP-Protocol-https/issues" }, "homepage" : "https://github.com/libwww-perl/LWP-Protocol-https", "repository" : { "type" : "git", "url" : "https://github.com/libwww-perl/LWP-Protocol-https.git", "web" : "https://github.com/libwww-perl/LWP-Protocol-https" }, "x_IRC" : "irc://irc.perl.org/#lwp", "x_MailingList" : "mailto:libwww@perl.org" }, "version" : "6.15", "x_Dist_Zilla" : { "perl" : { "version" : "5.042000" }, "plugins" : [ { "class" : "Dist::Zilla::Plugin::Git::GatherDir", "config" : { "Dist::Zilla::Plugin::GatherDir" : { "exclude_filename" : [ "LICENSE", "META.json", "Makefile.PL", "README.md" ], "exclude_match" : [], "include_dotfiles" : 0, "prefix" : "", "prune_directory" : [], "root" : "." }, "Dist::Zilla::Plugin::Git::GatherDir" : { "include_untracked" : 0 } }, "name" : "Git::GatherDir", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "PruneCruft", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "MetaConfig", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Package", "config" : { "Dist::Zilla::Plugin::MetaProvides::Package" : { "finder_objects" : [ { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "MetaProvides::Package/AUTOVIV/:InstallModulesPM", "version" : "6.033" } ], "include_underscores" : 0 }, "Dist::Zilla::Role::MetaProvider::Provider" : { "$Dist::Zilla::Role::MetaProvider::Provider::VERSION" : "2.002004", "inherit_missing" : 1, "inherit_version" : 1, "meta_noindex" : 1 }, "Dist::Zilla::Role::ModuleMetadata" : { "Module::Metadata" : "1.000038", "version" : "0.006" } }, "name" : "MetaProvides::Package", "version" : "2.004003" }, { "class" : "Dist::Zilla::Plugin::MetaNoIndex", "name" : "MetaNoIndex", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "MetaYAML", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "MetaJSON", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaResources", "name" : "MetaResources", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "config" : { "Dist::Zilla::Plugin::Git::Check" : { "untracked_files" : "die" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "LICENSE", "META.json", "Makefile.PL", "README.md" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." } }, "name" : "Git::Check", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { "git_version" : "2.43.0", "include_authors" : 0, "include_releaser" : 1, "order_by" : "name", "paths" : [] } }, "name" : "Git::Contributors", "version" : "0.038" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "GithubMeta", "version" : "0.58" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "Manifest", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "License", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", "config" : { "Dist::Zilla::Role::FileWatcher" : { "version" : "0.006" } }, "name" : "Markdown_Readme", "version" : "0.163250" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "develop", "type" : "recommends" } }, "name" : "@Git::VersionManager/pluginbundle version", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::RewriteVersion::Transitional", "config" : { "Dist::Zilla::Plugin::RewriteVersion" : { "add_tarball_name" : 0, "finders" : [ ":ExecFiles", ":InstallModules" ], "global" : 0, "skip_version_provider" : 0 }, "Dist::Zilla::Plugin::RewriteVersion::Transitional" : {} }, "name" : "@Git::VersionManager/RewriteVersion::Transitional", "version" : "0.009" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Update", "name" : "@Git::VersionManager/MetaProvides::Update", "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromRelease", "config" : { "Dist::Zilla::Plugin::CopyFilesFromRelease" : { "filename" : [ "Changes" ], "match" : [] } }, "name" : "@Git::VersionManager/CopyFilesFromRelease", "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], "commit_msg" : "v%V%n%n%c", "signoff" : 0 }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Changes", "LICENSE", "META.json", "Makefile.PL" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@Git::VersionManager/release snapshot", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "config" : { "Dist::Zilla::Plugin::Git::Tag" : { "branch" : null, "changelog" : "Changes", "signed" : 0, "tag" : "v6.15", "tag_format" : "v%V", "tag_message" : "v%V" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@Git::VersionManager/Git::Tag", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional", "config" : { "Dist::Zilla::Plugin::BumpVersionAfterRelease" : { "finders" : [ ":ExecFiles", ":InstallModules" ], "global" : 0, "munge_makefile_pl" : 1 }, "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional" : {} }, "name" : "@Git::VersionManager/BumpVersionAfterRelease::Transitional", "version" : "0.009" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@Git::VersionManager/NextRelease", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], "commit_msg" : "increment $VERSION after %v release", "signoff" : 0 }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Build.PL", "Changes", "Makefile.PL" ], "allow_dirty_match" : [ "(?^:^lib/.*\\.pm$)" ], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@Git::VersionManager/post-release commit", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::Prereqs::FromCPANfile", "name" : "Prereqs::FromCPANfile", "version" : "0.08" }, { "class" : "Dist::Zilla::Plugin::MakeMaker::Awesome", "config" : { "Dist::Zilla::Plugin::MakeMaker" : { "make_path" : "make", "version" : "6.033" }, "Dist::Zilla::Role::TestRunner" : { "default_jobs" : "8", "version" : "6.033" } }, "name" : "MakeMaker::Awesome", "version" : "0.49" }, { "class" : "Dist::Zilla::Plugin::CheckChangeLog", "name" : "CheckChangeLog", "version" : "0.05" }, { "class" : "Dist::Zilla::Plugin::CheckChangesHasContent", "name" : "CheckChangesHasContent", "version" : "0.011" }, { "class" : "Dist::Zilla::Plugin::Test::Kwalitee", "config" : { "Dist::Zilla::Plugin::Test::Kwalitee" : { "filename" : "xt/author/kwalitee.t", "skiptest" : [ "has_readme" ] } }, "name" : "Test::Kwalitee", "version" : "2.12" }, { "class" : "Dist::Zilla::Plugin::MojibakeTests", "name" : "MojibakeTests", "version" : "0.8" }, { "class" : "Dist::Zilla::Plugin::Test::Version", "name" : "Test::Version", "version" : "1.09" }, { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "Test::ReportPrereqs", "version" : "0.029" }, { "class" : "Dist::Zilla::Plugin::Test::Compile", "config" : { "Dist::Zilla::Plugin::Test::Compile" : { "bail_out_on_fail" : "1", "fail_on_warning" : "author", "fake_home" : 0, "filename" : "xt/author/00-compile.t", "module_finder" : [ ":InstallModules" ], "needs_display" : 0, "phase" : "develop", "script_finder" : [ ":PerlExecFiles" ], "skips" : [], "switch" : [] } }, "name" : "Test::Compile", "version" : "2.058" }, { "class" : "Dist::Zilla::Plugin::Test::Portability", "config" : { "Dist::Zilla::Plugin::Test::Portability" : { "options" : "" } }, "name" : "Test::Portability", "version" : "2.001003" }, { "class" : "Dist::Zilla::Plugin::Test::CleanNamespaces", "config" : { "Dist::Zilla::Plugin::Test::CleanNamespaces" : { "filename" : "xt/author/clean-namespaces.t", "skips" : [] } }, "name" : "Test::CleanNamespaces", "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::Test::EOL", "config" : { "Dist::Zilla::Plugin::Test::EOL" : { "filename" : "xt/author/eol.t", "finder" : [ ":ExecFiles", ":InstallModules", ":TestFiles" ], "trailing_whitespace" : 1 } }, "name" : "Test::EOL", "version" : "0.19" }, { "class" : "Dist::Zilla::Plugin::MetaTests", "name" : "MetaTests", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Test::MinimumVersion", "config" : { "Dist::Zilla::Plugin::Test::MinimumVersion" : { "max_target_perl" : null } }, "name" : "Test::MinimumVersion", "version" : "2.000011" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "PodSyntaxTests", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable", "name" : "Test::Pod::Coverage::Configurable", "version" : "0.07" }, { "class" : "Dist::Zilla::Plugin::Test::PodSpelling", "config" : { "Dist::Zilla::Plugin::Test::PodSpelling" : { "directories" : [ "bin", "lib" ], "spell_cmd" : "aspell list", "stopwords" : [], "wordlist" : "Pod::Wordlist" } }, "name" : "Test::PodSpelling", "version" : "2.007006" }, { "class" : "Dist::Zilla::Plugin::RunExtraTests", "config" : { "Dist::Zilla::Role::TestRunner" : { "default_jobs" : "8" } }, "name" : "RunExtraTests", "version" : "0.029" }, { "class" : "Dist::Zilla::Plugin::CheckStrictVersion", "name" : "CheckStrictVersion", "version" : "0.001" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromBuild", "name" : "CopyFilesFromBuild", "version" : "0.170880" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "TestRelease", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "ConfirmRelease", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "UploadToCPAN", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "config" : { "Dist::Zilla::Plugin::Git::Push" : { "push_to" : [ "origin" ], "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." } }, "name" : "Git::Push", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "MetaProvides::Package/AUTOVIV/:InstallModulesPM", "version" : "6.033" } ], "zilla" : { "class" : "Dist::Zilla::Dist::Builder", "config" : { "is_trial" : 0 }, "version" : "6.033" } }, "x_contributors" : [ "Adam Kennedy ", "Adam Sjogren ", "Alexandr Ciornii ", "Alexey Tourbin ", "Alex Kapranoff ", "amire80 ", "Andreas J. Koenig ", "Axel Burri ", "Bill Mann ", "Bron Gondwana ", "Chase Whitener ", "Christopher J. Madsen ", "cpansprout ", "Dan Book ", "Daniel Hedlund ", "David E. Wheeler ", "David Golden ", "DAVIDRW ", "dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>", "Dmitriy Shamatrin ", "drieux ", "Father Chrysostomos ", "FWILES ", "Gavin Peters ", "Gianni Ceccarelli ", "Gisle Aas ", "Graeme Thompson ", "Hans-H. Froehlich ", "Ian Kilgore ", "Jacob J ", "Jakub Wilk ", "jefflee ", "JJ Merelo ", "john9art ", "Jon Jensen ", "Karen Etheridge ", "Leo Lapworth ", "Marin Tsanov ", "Mark Stosberg ", "Michael G. Schwern ", "Mike Schilli ", "Mohammad S Anwar ", "murphy ", "Nicolas R ", "Olaf Alders ", "Ondrej Hanak ", "openstrike ", "Peter Rabbitson ", "phrstbrn ", "Randy Stauner ", "Robert Stone ", "Rolf Grossmann ", "ruff ", "sasao ", "Sean M. Burke ", "Shoichi Kaji ", "Slaven Rezic ", "Spiros Denaxas ", "Steffen Ullrich ", "Steffen Ullrich ", "Steve Hay ", "Tim Couzins ", "Todd Lipcon ", "Tom Hukins ", "Tony Finch ", "Toru Yamaguchi ", "uid39246 ", "Ville Skyttä ", "Yuri Karaban ", "Yury Zavarin ", "Zefram " ], "x_generated_by_perl" : "v5.42.0", "x_serialization_backend" : "JSON::PP version 4.16", "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later" } work/1776643672.97974/LWP-Protocol-https-6.15/blib/meta/install.json000064400000000531152424177470017533 0ustar00{"pathname":"O/OA/OALDERS/LWP-Protocol-https-6.15.tar.gz","dist":"LWP-Protocol-https-6.15","provides":{"LWP::Protocol::https":{"version":"6.15","file":"lib/LWP/Protocol/https.pm"},"LWP::Protocol::https::Socket":{"version":"6.15","file":"lib/LWP/Protocol/https.pm"}},"version":"6.15","target":"LWP::Protocol::https","name":"LWP::Protocol::https"}work/1776643672.97974/LWP-Protocol-https-6.15/blib/bin/.exists000064400000000000152424177470016323 0ustar00work/1776643672.97974/LWP-Protocol-https-6.15/blib/lib/LWP/Protocol/https.pm000044400000013533152424177470020761 0ustar00package LWP::Protocol::https; use strict; use warnings; our $VERSION = '6.15'; use parent qw(LWP::Protocol::http); require Net::HTTPS; sub socket_type { return "https"; } sub _extra_sock_opts { my $self = shift; my %ssl_opts = %{$self->{ua}{ssl_opts} || {}}; if (delete $ssl_opts{verify_hostname}) { $ssl_opts{SSL_verify_mode} ||= 1; $ssl_opts{SSL_verifycn_scheme} = 'www'; } else { if ( $Net::HTTPS::SSL_SOCKET_CLASS eq 'Net::SSL' ) { $ssl_opts{SSL_verifycn_scheme} = ''; } else { $ssl_opts{SSL_verifycn_scheme} = 'none'; } } if ($ssl_opts{SSL_verify_mode}) { unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) { if ($Net::HTTPS::SSL_SOCKET_CLASS eq 'IO::Socket::SSL' && defined &IO::Socket::SSL::default_ca && IO::Socket::SSL::default_ca() ) { # IO::Socket::SSL has a usable default CA } elsif ( my $cafile = eval { require Mozilla::CA; Mozilla::CA::SSL_ca_file() }) { # use Mozilla::CA $ssl_opts{SSL_ca_file} = $cafile; } else { die <<'EOT'; Can't verify SSL peers without knowing which Certificate Authorities to trust. This problem can be fixed by either setting the PERL_LWP_SSL_CA_FILE environment variable to the file where your trusted CA are, or by installing the Mozilla::CA module for set of commonly trusted CAs. To completely disable the verification that you talk to the correct SSL peer you can set SSL_verify_mode to 0 within ssl_opts. But, if you do this you can't be sure that you communicate with the expected peer. EOT } } } $self->{ssl_opts} = \%ssl_opts; return (%ssl_opts, MultiHomed => 1, $self->SUPER::_extra_sock_opts); } # This is a subclass of LWP::Protocol::http. # That parent class calls ->_check_sock() during the # request method. This allows us to hook in and run checks # sub _check_sock # { # my($self, $req, $sock) = @_; # } sub _get_sock_info { my $self = shift; $self->SUPER::_get_sock_info(@_); my($res, $sock) = @_; if ($sock->can('get_sslversion') and my $sslversion = $sock->get_sslversion) { $res->header("Client-SSL-Version" => $sslversion); } $res->header("Client-SSL-Cipher" => $sock->get_cipher); my $cert = $sock->get_peer_certificate; if ($cert) { $res->header("Client-SSL-Cert-Subject" => $cert->subject_name); $res->header("Client-SSL-Cert-Issuer" => $cert->issuer_name); } if (!$self->{ssl_opts}{SSL_verify_mode}) { $res->push_header("Client-SSL-Warning" => "Peer certificate not verified"); } elsif (!$self->{ssl_opts}{SSL_verifycn_scheme}) { $res->push_header("Client-SSL-Warning" => "Peer hostname match with certificate not verified"); } $res->header("Client-SSL-Socket-Class" => $Net::HTTPS::SSL_SOCKET_CLASS); } # upgrade plain socket to SSL, used for CONNECT tunnel when proxying https # will only work if the underlying socket class of Net::HTTPS is # IO::Socket::SSL, but code will only be called in this case if ( $Net::HTTPS::SSL_SOCKET_CLASS->can('start_SSL')) { *_upgrade_sock = sub { my ($self,$sock,$url) = @_; # SNI should be passed there only if it is not an IP address. # Details: https://github.com/libwww-perl/libwww-perl/issues/449#issuecomment-1896175509 my $host = $url->host() =~ m/:|^[\d.]+$/s ? undef : $url->host(); my $usebio = {}; if (UNIVERSAL::can($sock,'is_SSL') && $sock->is_SSL) { $usebio = eval { $Net::HTTPS::SSL_SOCKET_CLASS->can_nested_ssl } or die "no support for nested TLS in this IO::Socket::SSL version"; } $sock = LWP::Protocol::https::Socket->start_SSL( my $osock = $sock, SSL_verifycn_name => $url->host, SSL_hostname => $host, %$usebio, $self->_extra_sock_opts, ); if (!$sock) { $@ = LWP::Protocol::https::Socket->errstr; return; } if ($usebio and my @fields = grep { /^http_/ } keys %{*$osock}) { # propagate any http_ fields from osock to sock @{*$sock}{@fields} = @{*$osock}{@fields} } return $sock; } } #----------------------------------------------------------- package LWP::Protocol::https::Socket; use parent -norequire, qw(Net::HTTPS LWP::Protocol::http::SocketMethods); 1; __END__ =head1 NAME LWP::Protocol::https - Provide https support for LWP::UserAgent =head1 SYNOPSIS use LWP::UserAgent; $ua = LWP::UserAgent->new(ssl_opts => { verify_hostname => 1 }); $res = $ua->get("https://www.example.com"); # specify a CA path $ua = LWP::UserAgent->new( ssl_opts => { SSL_ca_path => '/etc/ssl/certs', verify_hostname => 1, } ); =head1 DESCRIPTION The LWP::Protocol::https module provides support for using https schemed URLs with LWP. This module is a plug-in to the LWP protocol handling, so you don't use it directly. Once the module is installed LWP is able to access sites using HTTP over SSL/TLS. If hostname verification is requested by LWP::UserAgent's C, and neither C nor C is set, then C is implied to be the one provided by L. If the Mozilla::CA module isn't available SSL requests will fail. Either install this module, set up an alternative C or disable hostname verification. This module used to be bundled with the libwww-perl, but it was unbundled in v6.02 in order to be able to declare its dependencies properly for the CPAN tool-chain. Applications that need https support can just declare their dependency on LWP::Protocol::https and will no longer need to know what underlying modules to install. =head1 SEE ALSO L, L, L =head1 COPYRIGHT & LICENSE Copyright (c) 1997-2011 Gisle Aas. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut work/1776643672.97974/LWP-Protocol-https-6.15/blib/lib/LWP/Protocol/.exists000064400000000000152424177470020564 0ustar00work/1776643672.97974/LWP-Protocol-https-6.15/blib/lib/auto/LWP/Protocol/https/.exists000064400000000000152424177470022676 0ustar00work/1776643672.97974/LWP-Protocol-https-6.15/blib/man1/.exists000064400000000000152424177470016407 0ustar00work/1776643672.97974/LWP-Protocol-https-6.15/blib/man3/.exists000064400000000000152424177470016411 0ustar00work/1776643672.97974/LWP-Protocol-https-6.15/blib/man3/LWP::Protocol::https.3pm000064400000006507152424177470021353 0ustar00.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "LWP::Protocol::https 3pm" .TH LWP::Protocol::https 3pm 2026-02-23 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME LWP::Protocol::https \- Provide https support for LWP::UserAgent .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& use LWP::UserAgent; \& \& $ua = LWP::UserAgent\->new(ssl_opts => { verify_hostname => 1 }); \& $res = $ua\->get("https://www.example.com"); \& \& # specify a CA path \& $ua = LWP::UserAgent\->new( \& ssl_opts => { \& SSL_ca_path => \*(Aq/etc/ssl/certs\*(Aq, \& verify_hostname => 1, \& } \& ); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" The LWP::Protocol::https module provides support for using https schemed URLs with LWP. This module is a plug-in to the LWP protocol handling, so you don't use it directly. Once the module is installed LWP is able to access sites using HTTP over SSL/TLS. .PP If hostname verification is requested by LWP::UserAgent's \f(CW\*(C`ssl_opts\*(C'\fR, and neither \f(CW\*(C`SSL_ca_file\*(C'\fR nor \f(CW\*(C`SSL_ca_path\*(C'\fR is set, then \f(CW\*(C`SSL_ca_file\*(C'\fR is implied to be the one provided by Mozilla::CA. If the Mozilla::CA module isn't available SSL requests will fail. Either install this module, set up an alternative \f(CW\*(C`SSL_ca_file\*(C'\fR or disable hostname verification. .PP This module used to be bundled with the libwww-perl, but it was unbundled in v6.02 in order to be able to declare its dependencies properly for the CPAN tool-chain. Applications that need https support can just declare their dependency on LWP::Protocol::https and will no longer need to know what underlying modules to install. .SH "SEE ALSO" .IX Header "SEE ALSO" IO::Socket::SSL, Crypt::SSLeay, Mozilla::CA .SH "COPYRIGHT & LICENSE" .IX Header "COPYRIGHT & LICENSE" Copyright (c) 1997\-2011 Gisle Aas. .PP This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. work/1776643672.97974/LWP-Protocol-https-6.15/tidyall.ini000064400000001106152424177470015476 0ustar00[PerlTidy] select = **/*.{pl,pm,t,psgi} ignore = t/00-* ignore = t/author-* ignore = t/release-* ignore = blib/**/* ignore = .build/**/* ignore = LWP-Protocol-https-*/**/* argv = --profile=$ROOT/perltidyrc ;[PerlCritic] ;select = **/*.{pl,pm,t,psgi} ;ignore = t/00-* ;ignore = t/author-* ;ignore = t/release-* ;ignore = blib/**/* ;ignore = .build/**/* ;ignore = LWP-Protocol-https-*/**/* ;argv = --profile $ROOT/perlcriticrc --program-extensions .pl --program-extensions .t --program-extensions .psgi [SortLines::Naturally] select = .gitignore [UniqueLines] select = .gitignore work/1776643672.97974/LWP-Protocol-https-6.15/CONTRIBUTING.md000064400000010204152424177470015563 0ustar00# HOW TO CONTRIBUTE Thank you for considering contributing to this distribution. This file contains instructions that will help you work with the source code. The distribution is managed with [Dist::Zilla](https://metacpan.org/pod/Dist::Zilla). This means that many of the usual files you might expect are not in the repository, but are generated at release time. Some generated files are kept in the repository as a convenience (e.g. Build.PL/Makefile.PL and META.json). Generally, **you do not need Dist::Zilla to contribute patches**. You may need Dist::Zilla to create a tarball. See below for guidance. ## Getting dependencies If you have App::cpanminus 1.6 or later installed, you can use [cpanm](https://metacpan.org/pod/cpanm) to satisfy dependencies like this: $ cpanm --installdeps --with-develop . You can also run this command (or any other cpanm command) without installing App::cpanminus first, using the fatpacked `cpanm` script via curl or wget: $ curl -L https://cpanmin.us | perl - --installdeps --with-develop . $ wget -qO - https://cpanmin.us | perl - --installdeps --with-develop . Otherwise, look for either a `cpanfile` or `META.json` file for a list of dependencies to satisfy. ## Running tests You can run tests directly using the `prove` tool: $ prove -l $ prove -lv t/some_test_file.t For most of my distributions, `prove` is entirely sufficient for you to test any patches you have. I use `prove` for 99% of my testing during development. ## Code style and tidying Please try to match any existing coding style. If there is a `.perltidyrc` file, please install Perl::Tidy and use perltidy before submitting patches. ## Installing and using Dist::Zilla [Dist::Zilla](https://metacpan.org/pod/Dist::Zilla) is a very powerful authoring tool, optimized for maintaining a large number of distributions with a high degree of automation, but it has a large dependency chain, a bit of a learning curve and requires a number of author-specific plugins. To install it from CPAN, I recommend one of the following approaches for the quickest installation: # using CPAN.pm, but bypassing non-functional pod tests $ cpan TAP::Harness::Restricted $ PERL_MM_USE_DEFAULT=1 HARNESS_CLASS=TAP::Harness::Restricted cpan Dist::Zilla # using cpanm, bypassing *all* tests $ cpanm -n Dist::Zilla In either case, it's probably going to take about 10 minutes. Go for a walk, go get a cup of your favorite beverage, take a bathroom break, or whatever. When you get back, Dist::Zilla should be ready for you. Then you need to install any plugins specific to this distribution: $ dzil authordeps --missing | cpanm You can use Dist::Zilla to install the distribution's dependencies if you haven't already installed them with cpanm: $ dzil listdeps --missing --develop | cpanm Once everything is installed, here are some dzil commands you might try: $ dzil build $ dzil test $ dzil regenerate You can learn more about Dist::Zilla at http://dzil.org/ ## Other notes This distribution maintains the generated `META.json` and either `Makefile.PL` or `Build.PL` in the repository. This allows two things: [Travis CI](https://travis-ci.org/) can build and test the distribution without requiring Dist::Zilla, and the distribution can be installed directly from Github or a local git repository using `cpanm` for testing (again, not requiring Dist::Zilla). $ cpanm git://github.com/Author/Distribution-Name.git $ cd Distribution-Name; cpanm . Contributions are preferred in the form of a Github pull request. See [Using pull requests](https://help.github.com/articles/using-pull-requests/) for further information. You can use the Github issue tracker to report issues without an accompanying patch. # CREDITS This file was adapted from an initial `CONTRIBUTING.mkdn` file from David Golden under the terms of the Apache 2 license, with inspiration from the contributing documents from [Dist::Zilla::Plugin::Author::KENTNL::CONTRIBUTING](https://metacpan.org/pod/Dist::Zilla::Plugin::Author::KENTNL::CONTRIBUTING) and [Dist::Zilla::PluginBundle::Author::ETHER](https://metacpan.org/pod/Dist::Zilla::PluginBundle::Author::ETHER). work/1776643672.97974/LWP-Protocol-https-6.15/MYMETA.json000064400000061734152424177470015237 0ustar00{ "abstract" : "Provide https support for LWP::UserAgent", "author" : [ "Gisle Aas " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 6.033, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "LWP-Protocol-https", "no_index" : { "directory" : [ "t", "xt" ] }, "prereqs" : { "build" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" }, "suggests" : { "JSON::PP" : "2.27300" } }, "develop" : { "recommends" : { "Dist::Zilla::PluginBundle::Git::VersionManager" : "0.007" }, "requires" : { "Capture::Tiny" : "0.48", "File::Spec" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", "Pod::Coverage::TrustPod" : "0", "Test::CPAN::Changes" : "0.19", "Test::CPAN::Meta" : "0", "Test::CheckManifest" : "1.29", "Test::CleanNamespaces" : "0.15", "Test::EOL" : "0", "Test::Kwalitee" : "1.22", "Test::MinimumVersion" : "0", "Test::Mojibake" : "0", "Test::More" : "0.94", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08", "Test::Pod::Spelling::CommonMistakes" : "1.000", "Test::Portability::Files" : "0", "Test::Spelling" : "0.17", "Test::Version" : "1" } }, "runtime" : { "requires" : { "IO::Socket::SSL" : "1.970", "LWP::Protocol::http" : "0", "LWP::UserAgent" : "6.06", "Net::HTTPS" : "6", "base" : "0", "perl" : "5.008001", "strict" : "0" } }, "test" : { "recommends" : { "CPAN::Meta" : "2.120900" }, "requires" : { "ExtUtils::MakeMaker" : "0", "File::Spec" : "0", "File::Temp" : "0", "IO::Select" : "0", "IO::Socket::INET" : "0", "IO::Socket::SSL" : "1.970", "IO::Socket::SSL::Utils" : "0", "LWP::UserAgent" : "6.06", "Socket" : "0", "Test::More" : "0.96", "Test::Needs" : "0.002010", "Test::RequiresInternet" : "0", "warnings" : "0" } } }, "provides" : { "LWP::Protocol::https" : { "file" : "lib/LWP/Protocol/https.pm", "version" : "6.15" }, "LWP::Protocol::https::Socket" : { "file" : "lib/LWP/Protocol/https.pm", "version" : "6.15" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/libwww-perl/LWP-Protocol-https/issues" }, "homepage" : "https://github.com/libwww-perl/LWP-Protocol-https", "repository" : { "type" : "git", "url" : "https://github.com/libwww-perl/LWP-Protocol-https.git", "web" : "https://github.com/libwww-perl/LWP-Protocol-https" }, "x_IRC" : "irc://irc.perl.org/#lwp", "x_MailingList" : "mailto:libwww@perl.org" }, "version" : "6.15", "x_Dist_Zilla" : { "perl" : { "version" : "5.042000" }, "plugins" : [ { "class" : "Dist::Zilla::Plugin::Git::GatherDir", "config" : { "Dist::Zilla::Plugin::GatherDir" : { "exclude_filename" : [ "LICENSE", "META.json", "Makefile.PL", "README.md" ], "exclude_match" : [], "include_dotfiles" : 0, "prefix" : "", "prune_directory" : [], "root" : "." }, "Dist::Zilla::Plugin::Git::GatherDir" : { "include_untracked" : 0 } }, "name" : "Git::GatherDir", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "PruneCruft", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "MetaConfig", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Package", "config" : { "Dist::Zilla::Plugin::MetaProvides::Package" : { "finder_objects" : [ { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "MetaProvides::Package/AUTOVIV/:InstallModulesPM", "version" : "6.033" } ], "include_underscores" : 0 }, "Dist::Zilla::Role::MetaProvider::Provider" : { "$Dist::Zilla::Role::MetaProvider::Provider::VERSION" : "2.002004", "inherit_missing" : 1, "inherit_version" : 1, "meta_noindex" : 1 }, "Dist::Zilla::Role::ModuleMetadata" : { "Module::Metadata" : "1.000038", "version" : "0.006" } }, "name" : "MetaProvides::Package", "version" : "2.004003" }, { "class" : "Dist::Zilla::Plugin::MetaNoIndex", "name" : "MetaNoIndex", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "MetaYAML", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "MetaJSON", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaResources", "name" : "MetaResources", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "config" : { "Dist::Zilla::Plugin::Git::Check" : { "untracked_files" : "die" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "LICENSE", "META.json", "Makefile.PL", "README.md" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." } }, "name" : "Git::Check", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { "git_version" : "2.43.0", "include_authors" : 0, "include_releaser" : 1, "order_by" : "name", "paths" : [] } }, "name" : "Git::Contributors", "version" : "0.038" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "GithubMeta", "version" : "0.58" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "Manifest", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "License", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", "config" : { "Dist::Zilla::Role::FileWatcher" : { "version" : "0.006" } }, "name" : "Markdown_Readme", "version" : "0.163250" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "develop", "type" : "recommends" } }, "name" : "@Git::VersionManager/pluginbundle version", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::RewriteVersion::Transitional", "config" : { "Dist::Zilla::Plugin::RewriteVersion" : { "add_tarball_name" : 0, "finders" : [ ":ExecFiles", ":InstallModules" ], "global" : 0, "skip_version_provider" : 0 }, "Dist::Zilla::Plugin::RewriteVersion::Transitional" : {} }, "name" : "@Git::VersionManager/RewriteVersion::Transitional", "version" : "0.009" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Update", "name" : "@Git::VersionManager/MetaProvides::Update", "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromRelease", "config" : { "Dist::Zilla::Plugin::CopyFilesFromRelease" : { "filename" : [ "Changes" ], "match" : [] } }, "name" : "@Git::VersionManager/CopyFilesFromRelease", "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], "commit_msg" : "v%V%n%n%c", "signoff" : 0 }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Changes", "LICENSE", "META.json", "Makefile.PL" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@Git::VersionManager/release snapshot", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "config" : { "Dist::Zilla::Plugin::Git::Tag" : { "branch" : null, "changelog" : "Changes", "signed" : 0, "tag" : "v6.15", "tag_format" : "v%V", "tag_message" : "v%V" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@Git::VersionManager/Git::Tag", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional", "config" : { "Dist::Zilla::Plugin::BumpVersionAfterRelease" : { "finders" : [ ":ExecFiles", ":InstallModules" ], "global" : 0, "munge_makefile_pl" : 1 }, "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional" : {} }, "name" : "@Git::VersionManager/BumpVersionAfterRelease::Transitional", "version" : "0.009" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@Git::VersionManager/NextRelease", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], "commit_msg" : "increment $VERSION after %v release", "signoff" : 0 }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Build.PL", "Changes", "Makefile.PL" ], "allow_dirty_match" : [ "(?^:^lib/.*\\.pm$)" ], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@Git::VersionManager/post-release commit", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::Prereqs::FromCPANfile", "name" : "Prereqs::FromCPANfile", "version" : "0.08" }, { "class" : "Dist::Zilla::Plugin::MakeMaker::Awesome", "config" : { "Dist::Zilla::Plugin::MakeMaker" : { "make_path" : "make", "version" : "6.033" }, "Dist::Zilla::Role::TestRunner" : { "default_jobs" : "8", "version" : "6.033" } }, "name" : "MakeMaker::Awesome", "version" : "0.49" }, { "class" : "Dist::Zilla::Plugin::CheckChangeLog", "name" : "CheckChangeLog", "version" : "0.05" }, { "class" : "Dist::Zilla::Plugin::CheckChangesHasContent", "name" : "CheckChangesHasContent", "version" : "0.011" }, { "class" : "Dist::Zilla::Plugin::Test::Kwalitee", "config" : { "Dist::Zilla::Plugin::Test::Kwalitee" : { "filename" : "xt/author/kwalitee.t", "skiptest" : [ "has_readme" ] } }, "name" : "Test::Kwalitee", "version" : "2.12" }, { "class" : "Dist::Zilla::Plugin::MojibakeTests", "name" : "MojibakeTests", "version" : "0.8" }, { "class" : "Dist::Zilla::Plugin::Test::Version", "name" : "Test::Version", "version" : "1.09" }, { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "Test::ReportPrereqs", "version" : "0.029" }, { "class" : "Dist::Zilla::Plugin::Test::Compile", "config" : { "Dist::Zilla::Plugin::Test::Compile" : { "bail_out_on_fail" : "1", "fail_on_warning" : "author", "fake_home" : 0, "filename" : "xt/author/00-compile.t", "module_finder" : [ ":InstallModules" ], "needs_display" : 0, "phase" : "develop", "script_finder" : [ ":PerlExecFiles" ], "skips" : [], "switch" : [] } }, "name" : "Test::Compile", "version" : "2.058" }, { "class" : "Dist::Zilla::Plugin::Test::Portability", "config" : { "Dist::Zilla::Plugin::Test::Portability" : { "options" : "" } }, "name" : "Test::Portability", "version" : "2.001003" }, { "class" : "Dist::Zilla::Plugin::Test::CleanNamespaces", "config" : { "Dist::Zilla::Plugin::Test::CleanNamespaces" : { "filename" : "xt/author/clean-namespaces.t", "skips" : [] } }, "name" : "Test::CleanNamespaces", "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::Test::EOL", "config" : { "Dist::Zilla::Plugin::Test::EOL" : { "filename" : "xt/author/eol.t", "finder" : [ ":ExecFiles", ":InstallModules", ":TestFiles" ], "trailing_whitespace" : 1 } }, "name" : "Test::EOL", "version" : "0.19" }, { "class" : "Dist::Zilla::Plugin::MetaTests", "name" : "MetaTests", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Test::MinimumVersion", "config" : { "Dist::Zilla::Plugin::Test::MinimumVersion" : { "max_target_perl" : null } }, "name" : "Test::MinimumVersion", "version" : "2.000011" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "PodSyntaxTests", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable", "name" : "Test::Pod::Coverage::Configurable", "version" : "0.07" }, { "class" : "Dist::Zilla::Plugin::Test::PodSpelling", "config" : { "Dist::Zilla::Plugin::Test::PodSpelling" : { "directories" : [ "bin", "lib" ], "spell_cmd" : "aspell list", "stopwords" : [], "wordlist" : "Pod::Wordlist" } }, "name" : "Test::PodSpelling", "version" : "2.007006" }, { "class" : "Dist::Zilla::Plugin::RunExtraTests", "config" : { "Dist::Zilla::Role::TestRunner" : { "default_jobs" : "8" } }, "name" : "RunExtraTests", "version" : "0.029" }, { "class" : "Dist::Zilla::Plugin::CheckStrictVersion", "name" : "CheckStrictVersion", "version" : "0.001" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromBuild", "name" : "CopyFilesFromBuild", "version" : "0.170880" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "TestRelease", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "ConfirmRelease", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "UploadToCPAN", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "config" : { "Dist::Zilla::Plugin::Git::Push" : { "push_to" : [ "origin" ], "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." } }, "name" : "Git::Push", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "MetaProvides::Package/AUTOVIV/:InstallModulesPM", "version" : "6.033" } ], "zilla" : { "class" : "Dist::Zilla::Dist::Builder", "config" : { "is_trial" : 0 }, "version" : "6.033" } }, "x_contributors" : [ "Adam Kennedy ", "Adam Sjogren ", "Alexandr Ciornii ", "Alexey Tourbin ", "Alex Kapranoff ", "amire80 ", "Andreas J. Koenig ", "Axel Burri ", "Bill Mann ", "Bron Gondwana ", "Chase Whitener ", "Christopher J. Madsen ", "cpansprout ", "Dan Book ", "Daniel Hedlund ", "David E. Wheeler ", "David Golden ", "DAVIDRW ", "dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>", "Dmitriy Shamatrin ", "drieux ", "Father Chrysostomos ", "FWILES ", "Gavin Peters ", "Gianni Ceccarelli ", "Gisle Aas ", "Graeme Thompson ", "Hans-H. Froehlich ", "Ian Kilgore ", "Jacob J ", "Jakub Wilk ", "jefflee ", "JJ Merelo ", "john9art ", "Jon Jensen ", "Karen Etheridge ", "Leo Lapworth ", "Marin Tsanov ", "Mark Stosberg ", "Michael G. Schwern ", "Mike Schilli ", "Mohammad S Anwar ", "murphy ", "Nicolas R ", "Olaf Alders ", "Ondrej Hanak ", "openstrike ", "Peter Rabbitson ", "phrstbrn ", "Randy Stauner ", "Robert Stone ", "Rolf Grossmann ", "ruff ", "sasao ", "Sean M. Burke ", "Shoichi Kaji ", "Slaven Rezic ", "Spiros Denaxas ", "Steffen Ullrich ", "Steffen Ullrich ", "Steve Hay ", "Tim Couzins ", "Todd Lipcon ", "Tom Hukins ", "Tony Finch ", "Toru Yamaguchi ", "uid39246 ", "Ville Skyttä ", "Yuri Karaban ", "Yury Zavarin ", "Zefram " ], "x_generated_by_perl" : "v5.42.0", "x_serialization_backend" : "JSON::PP version 4.16", "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later" } work/1776643672.97974/LWP-Protocol-https-6.15/xt/author/mojibake.t000064400000000151152424177470017235 0ustar00#!perl use strict; use warnings qw(all); use Test::More; use Test::Mojibake; all_files_encoding_ok(); work/1776643672.97974/LWP-Protocol-https-6.15/xt/author/clean-namespaces.t000064400000000361152424177470020656 0ustar00use strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::CleanNamespaces 0.006 use Test::More 0.94; use Test::CleanNamespaces 0.15; subtest all_namespaces_clean => sub { all_namespaces_clean() }; done_testing; work/1776643672.97974/LWP-Protocol-https-6.15/xt/author/kwalitee.t000064400000000320152424177470017257 0ustar00# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.12 use strict; use warnings; use Test::More 0.88; use Test::Kwalitee 1.21 'kwalitee_ok'; kwalitee_ok( qw( -has_readme ) ); done_testing; work/1776643672.97974/LWP-Protocol-https-6.15/xt/author/distmeta.t000064400000000223152424177470017266 0ustar00#!perl # This file was automatically generated by Dist::Zilla::Plugin::MetaTests. use strict; use warnings; use Test::CPAN::Meta; meta_yaml_ok(); work/1776643672.97974/LWP-Protocol-https-6.15/xt/author/pod-spell.t000064400000002762152424177470017365 0ustar00use strict; use warnings; use Test::More; # generated by Dist::Zilla::Plugin::Test::PodSpelling 2.007006 use Test::Spelling 0.17; use Pod::Wordlist; set_spell_cmd('aspell list'); add_stopwords(); all_pod_files_spelling_ok( qw( bin lib ) ); __DATA__ 49699333 Aas Adam Alders Alex Alexandr Alexey Andreas Anwar Axel Bill Book Bron Burke Burri Ceccarelli Chase Christopher Chrysostomos Ciornii Couzins DAVIDRW Dan Daniel David Denaxas Dmitriy Etheridge FWILES Father Finch Froehlich Gavin Gianni Gisle Golden Gondwana Graeme Grossmann Hanak Hans Hay Hedlund Hukins Ian JJ Jacob Jakub Jensen Jon Kaji Kapranoff Karaban Karen Kennedy Kilgore Koenig LWP Lapworth Leo Lipcon Madsen Mann Marin Mark Merelo Michael Mike Mohammad Nicolas Olaf Ondrej Peter Peters Protocol Rabbitson Randy Rezic Robert Rolf Schilli Schwern Sean Shamatrin Shoichi Sjogren Skyttä Slaven Spiros Stauner Steffen Steffen_Ullrich Steve SteveHay Stone Stosberg Thompson Tim Todd Tom Tony Toru Tourbin Tsanov Ullrich Ville Wheeler Whitener Wilk Yamaguchi Yuri Yury Zavarin Zefram adamk alexchorny amir amire80 andreas asjo at axel brong btg capoeirab cjm cpansprout dagolden david davidrw denaxas dependabot dot drieux dshamatrin ether gianni gisle git github gpeters grinnz hfroehlich https iank jefflee jjmerelo john9art jon jwilk ka leo lib mark mohammad murphy nicolas olaf ondrej openstrike phrstbrn randy rg ribasushi ruff sasao sburke schwern shaohua skaji slaven sprout talby tech tim todd tom uid39246 ville waif wfmann yury zefram zigorou work/1776643672.97974/LWP-Protocol-https-6.15/xt/author/pod-syntax.t000064400000000252152424177470017564 0ustar00#!perl # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use strict; use warnings; use Test::More; use Test::Pod 1.41; all_pod_files_ok(); work/1776643672.97974/LWP-Protocol-https-6.15/xt/author/eol.t000064400000000567152424177470016246 0ustar00use strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::EOL 0.19 use Test::More 0.88; use Test::EOL; my @files = ( 'lib/LWP/Protocol/https.pm', 't/00-report-prereqs.dd', 't/00-report-prereqs.t', 't/diag.t', 't/example.t', 't/https_proxy.t' ); eol_unix_ok($_, { trailing_whitespace => 1 }) foreach @files; done_testing; work/1776643672.97974/LWP-Protocol-https-6.15/xt/author/minimum-version.t000064400000000154152424177470020615 0ustar00use strict; use warnings; use Test::More; use Test::MinimumVersion; all_minimum_version_from_metayml_ok(); work/1776643672.97974/LWP-Protocol-https-6.15/xt/author/test-version.t000064400000000637152424177470020127 0ustar00use strict; use warnings; use Test::More; # generated by Dist::Zilla::Plugin::Test::Version 1.09 use Test::Version; my @imports = qw( version_all_ok ); my $params = { is_strict => 0, has_version => 1, multiple => 0, }; push @imports, $params if version->parse( $Test::Version::VERSION ) >= version->parse('1.002'); Test::Version->import(@imports); version_all_ok; done_testing; work/1776643672.97974/LWP-Protocol-https-6.15/xt/author/pod-coverage.t000064400000002155152424177470020035 0ustar00#!perl # This file was automatically generated by Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable 0.07. use Test::Pod::Coverage 1.08; use Test::More 0.88; BEGIN { if ( $] <= 5.008008 ) { plan skip_all => 'These tests require Pod::Coverage::TrustPod, which only works with Perl 5.8.9+'; } } use Pod::Coverage::TrustPod; my %skip = map { $_ => 1 } qw( ); my @modules; for my $module ( all_modules() ) { next if $skip{$module}; push @modules, $module; } plan skip_all => 'All the modules we found were excluded from POD coverage test.' unless @modules; plan tests => scalar @modules; my %trustme = ( 'LWP::Protocol::https' => [ qr/^(?:socket_type)$/ ] ); my @also_private; for my $module ( sort @modules ) { pod_coverage_ok( $module, { coverage_class => 'Pod::Coverage::TrustPod', also_private => \@also_private, trustme => $trustme{$module} || [], }, "pod coverage for $module" ); } done_testing(); work/1776643672.97974/LWP-Protocol-https-6.15/xt/author/portability.t000064400000000130152424177470020013 0ustar00use strict; use warnings; use Test::More; use Test::Portability::Files; run_tests(); work/1776643672.97974/LWP-Protocol-https-6.15/xt/author/00-compile.t000064400000002553152424177470017331 0ustar00use 5.006; use strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::Compile 2.058 use Test::More 0.94; plan tests => 2; my @module_files = ( 'LWP/Protocol/https.pm' ); # no fake home requested my @switches = ( -d 'blib' ? '-Mblib' : '-Ilib', ); use File::Spec; use IPC::Open3; use IO::Handle; open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!"; my @warnings; for my $lib (@module_files) { # see L my $stderr = IO::Handle->new; diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} . $str . q{'} } $^X, @switches, '-e', "require q[$lib]")) if $ENV{PERL_COMPILE_TEST_DEBUG}; my $pid = open3($stdin, '>&STDERR', $stderr, $^X, @switches, '-e', "require q[$lib]"); binmode $stderr, ':crlf' if $^O eq 'MSWin32'; my @_warnings = <$stderr>; waitpid($pid, 0); is($?, 0, "$lib loaded ok"); shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/ and not eval { +require blib; blib->VERSION('1.01') }; if (@_warnings) { warn @_warnings; push @warnings, @_warnings; } } is(scalar(@warnings), 0, 'no warnings found') or diag 'got warnings: ', explain(\@warnings); BAIL_OUT("Compilation problems") if !Test::More->builder->is_passing; work/1776643672.97974/LWP-Protocol-https-6.15/Makefile000064400000075615152424177470015013 0ustar00# This Makefile is for the LWP::Protocol::https extension to perl. # # It was generated automatically by MakeMaker version # 7.70 (Revision: 77000) from the contents of # Makefile.PL. Don't edit this file, edit Makefile.PL instead. # # ANY CHANGES MADE HERE WILL BE LOST! # # MakeMaker ARGV: () # # MakeMaker Parameters: # ABSTRACT => q[Provide https support for LWP::UserAgent] # AUTHOR => [q[Gisle Aas ]] # BUILD_REQUIRES => { } # CONFIGURE_REQUIRES => { ExtUtils::MakeMaker=>q[0] } # DISTNAME => q[LWP-Protocol-https] # LICENSE => q[perl] # MIN_PERL_VERSION => q[5.008001] # NAME => q[LWP::Protocol::https] # PREREQ_PM => { ExtUtils::MakeMaker=>q[0], File::Spec=>q[0], File::Temp=>q[0], IO::Select=>q[0], IO::Socket::INET=>q[0], IO::Socket::SSL=>q[1.970], IO::Socket::SSL::Utils=>q[0], LWP::Protocol::http=>q[0], LWP::UserAgent=>q[6.06], Net::HTTPS=>q[6], Socket=>q[0], Test::More=>q[0.96], Test::Needs=>q[0.002010], Test::RequiresInternet=>q[0], base=>q[0], strict=>q[0], warnings=>q[0] } # TEST_REQUIRES => { ExtUtils::MakeMaker=>q[0], File::Spec=>q[0], File::Temp=>q[0], IO::Select=>q[0], IO::Socket::INET=>q[0], IO::Socket::SSL=>q[1.970], IO::Socket::SSL::Utils=>q[0], LWP::UserAgent=>q[6.06], Socket=>q[0], Test::More=>q[0.96], Test::Needs=>q[0.002010], Test::RequiresInternet=>q[0], warnings=>q[0] } # VERSION => q[6.15] # test => { TESTS=>q[t/*.t] } # --- MakeMaker post_initialize section: # --- MakeMaker const_config section: # These definitions are from config.sh (via /usr/lib/x86_64-linux-gnu/perl-base/Config.pm). # They may have been overridden via Makefile.PL or on the command line. AR = ar CC = x86_64-linux-gnu-gcc CCCDLFLAGS = -fPIC CCDLFLAGS = -Wl,-E CPPRUN = x86_64-linux-gnu-gcc -E DLEXT = so DLSRC = dl_dlopen.xs EXE_EXT = FULL_AR = /usr/bin/ar LD = x86_64-linux-gnu-gcc LDDLFLAGS = -shared -L/usr/local/lib -fstack-protector-strong LDFLAGS = -fstack-protector-strong -L/usr/local/lib LIBC = /lib/x86_64-linux-gnu/libc.so.6 LIB_EXT = .a OBJ_EXT = .o OSNAME = linux OSVERS = 6.1.0 RANLIB = : SITELIBEXP = /usr/local/share/perl/5.38.2 SITEARCHEXP = /usr/local/lib/x86_64-linux-gnu/perl/5.38.2 SO = so VENDORARCHEXP = /usr/lib/x86_64-linux-gnu/perl5/5.38 VENDORLIBEXP = /usr/share/perl5 # --- MakeMaker constants section: AR_STATIC_ARGS = cr DIRFILESEP = / DFSEP = $(DIRFILESEP) NAME = LWP::Protocol::https NAME_SYM = LWP_Protocol_https VERSION = 6.15 VERSION_MACRO = VERSION VERSION_SYM = 6_15 DEFINE_VERSION = -D$(VERSION_MACRO)=\"$(VERSION)\" XS_VERSION = 6.15 XS_VERSION_MACRO = XS_VERSION XS_DEFINE_VERSION = -D$(XS_VERSION_MACRO)=\"$(XS_VERSION)\" INST_ARCHLIB = blib/arch INST_SCRIPT = blib/script INST_BIN = blib/bin INST_LIB = blib/lib INST_MAN1DIR = blib/man1 INST_MAN3DIR = blib/man3 MAN1EXT = 1p MAN3EXT = 3pm MAN1SECTION = 1 MAN3SECTION = 3 INSTALLDIRS = site DESTDIR = PREFIX = $(SITEPREFIX) PERLPREFIX = /usr SITEPREFIX = /usr/local VENDORPREFIX = /usr INSTALLPRIVLIB = /usr/share/perl/5.38 DESTINSTALLPRIVLIB = $(DESTDIR)$(INSTALLPRIVLIB) INSTALLSITELIB = /usr/local/share/perl/5.38.2 DESTINSTALLSITELIB = $(DESTDIR)$(INSTALLSITELIB) INSTALLVENDORLIB = /usr/share/perl5 DESTINSTALLVENDORLIB = $(DESTDIR)$(INSTALLVENDORLIB) INSTALLARCHLIB = /usr/lib/x86_64-linux-gnu/perl/5.38 DESTINSTALLARCHLIB = $(DESTDIR)$(INSTALLARCHLIB) INSTALLSITEARCH = /usr/local/lib/x86_64-linux-gnu/perl/5.38.2 DESTINSTALLSITEARCH = $(DESTDIR)$(INSTALLSITEARCH) INSTALLVENDORARCH = /usr/lib/x86_64-linux-gnu/perl5/5.38 DESTINSTALLVENDORARCH = $(DESTDIR)$(INSTALLVENDORARCH) INSTALLBIN = /usr/bin DESTINSTALLBIN = $(DESTDIR)$(INSTALLBIN) INSTALLSITEBIN = /usr/local/bin DESTINSTALLSITEBIN = $(DESTDIR)$(INSTALLSITEBIN) INSTALLVENDORBIN = /usr/bin DESTINSTALLVENDORBIN = $(DESTDIR)$(INSTALLVENDORBIN) INSTALLSCRIPT = /usr/bin DESTINSTALLSCRIPT = $(DESTDIR)$(INSTALLSCRIPT) INSTALLSITESCRIPT = /usr/local/bin DESTINSTALLSITESCRIPT = $(DESTDIR)$(INSTALLSITESCRIPT) INSTALLVENDORSCRIPT = /usr/bin DESTINSTALLVENDORSCRIPT = $(DESTDIR)$(INSTALLVENDORSCRIPT) INSTALLMAN1DIR = /usr/share/man/man1 DESTINSTALLMAN1DIR = $(DESTDIR)$(INSTALLMAN1DIR) INSTALLSITEMAN1DIR = /usr/local/man/man1 DESTINSTALLSITEMAN1DIR = $(DESTDIR)$(INSTALLSITEMAN1DIR) INSTALLVENDORMAN1DIR = /usr/share/man/man1 DESTINSTALLVENDORMAN1DIR = $(DESTDIR)$(INSTALLVENDORMAN1DIR) INSTALLMAN3DIR = /usr/share/man/man3 DESTINSTALLMAN3DIR = $(DESTDIR)$(INSTALLMAN3DIR) INSTALLSITEMAN3DIR = /usr/local/man/man3 DESTINSTALLSITEMAN3DIR = $(DESTDIR)$(INSTALLSITEMAN3DIR) INSTALLVENDORMAN3DIR = /usr/share/man/man3 DESTINSTALLVENDORMAN3DIR = $(DESTDIR)$(INSTALLVENDORMAN3DIR) PERL_LIB = /usr/share/perl/5.38 PERL_ARCHLIB = /usr/lib/x86_64-linux-gnu/perl/5.38 PERL_ARCHLIBDEP = /usr/lib/x86_64-linux-gnu/perl/5.38 LIBPERL_A = libperl.a FIRST_MAKEFILE = Makefile MAKEFILE_OLD = Makefile.old MAKE_APERL_FILE = Makefile.aperl PERLMAINCC = $(CC) PERL_INC = /usr/lib/x86_64-linux-gnu/perl/5.38/CORE PERL_INCDEP = /usr/lib/x86_64-linux-gnu/perl/5.38/CORE PERL = "/usr/bin/perl" FULLPERL = "/usr/bin/perl" ABSPERL = $(PERL) PERLRUN = $(PERL) FULLPERLRUN = $(FULLPERL) ABSPERLRUN = $(ABSPERL) PERLRUNINST = $(PERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)" FULLPERLRUNINST = $(FULLPERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)" ABSPERLRUNINST = $(ABSPERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)" PERL_CORE = 0 PERM_DIR = 755 PERM_RW = 644 PERM_RWX = 755 MAKEMAKER = /usr/share/perl/5.38/ExtUtils/MakeMaker.pm MM_VERSION = 7.70 MM_REVISION = 77000 # FULLEXT = Pathname for extension directory (eg Foo/Bar/Oracle). # BASEEXT = Basename part of FULLEXT. May be just equal FULLEXT. (eg Oracle) # PARENT_NAME = NAME without BASEEXT and no trailing :: (eg Foo::Bar) # DLBASE = Basename part of dynamic library. May be just equal BASEEXT. MAKE = make FULLEXT = LWP/Protocol/https BASEEXT = https PARENT_NAME = LWP::Protocol DLBASE = $(BASEEXT) VERSION_FROM = OBJECT = LDFROM = $(OBJECT) LINKTYPE = dynamic BOOTDEP = # Handy lists of source code files: XS_FILES = C_FILES = O_FILES = H_FILES = MAN1PODS = MAN3PODS = lib/LWP/Protocol/https.pm # Where is the Config information that we are using/depend on CONFIGDEP = $(PERL_ARCHLIBDEP)$(DFSEP)Config.pm $(PERL_INCDEP)$(DFSEP)config.h # Where to build things INST_LIBDIR = $(INST_LIB)/LWP/Protocol INST_ARCHLIBDIR = $(INST_ARCHLIB)/LWP/Protocol INST_AUTODIR = $(INST_LIB)/auto/$(FULLEXT) INST_ARCHAUTODIR = $(INST_ARCHLIB)/auto/$(FULLEXT) INST_STATIC = INST_DYNAMIC = INST_BOOT = # Extra linker info EXPORT_LIST = PERL_ARCHIVE = PERL_ARCHIVEDEP = PERL_ARCHIVE_AFTER = TO_INST_PM = lib/LWP/Protocol/https.pm # --- MakeMaker platform_constants section: MM_Unix_VERSION = 7.70 PERL_MALLOC_DEF = -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc # --- MakeMaker tool_autosplit section: # Usage: $(AUTOSPLITFILE) FileToSplit AutoDirToSplitInto AUTOSPLITFILE = $(ABSPERLRUN) -e 'use AutoSplit; autosplit($$$$ARGV[0], $$$$ARGV[1], 0, 1, 1)' -- # --- MakeMaker tool_xsubpp section: # --- MakeMaker tools_other section: SHELL = /bin/sh CHMOD = chmod CP = cp MV = mv NOOP = $(TRUE) NOECHO = @ RM_F = rm -f RM_RF = rm -rf TEST_F = test -f TOUCH = touch UMASK_NULL = umask 0 DEV_NULL = > /dev/null 2>&1 MKPATH = $(ABSPERLRUN) -MExtUtils::Command -e 'mkpath' -- EQUALIZE_TIMESTAMP = $(ABSPERLRUN) -MExtUtils::Command -e 'eqtime' -- FALSE = false TRUE = true ECHO = echo ECHO_N = echo -n UNINST = 0 VERBINST = 0 MOD_INSTALL = $(ABSPERLRUN) -MExtUtils::Install -e 'install([ from_to => {@ARGV}, verbose => '\''$(VERBINST)'\'', uninstall_shadows => '\''$(UNINST)'\'', dir_mode => '\''$(PERM_DIR)'\'' ]);' -- DOC_INSTALL = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'perllocal_install' -- UNINSTALL = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'uninstall' -- WARN_IF_OLD_PACKLIST = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'warn_if_old_packlist' -- MACROSTART = MACROEND = USEMAKEFILE = -f FIXIN = $(ABSPERLRUN) -MExtUtils::MY -e 'MY->fixin(shift)' -- CP_NONEMPTY = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'cp_nonempty' -- # --- MakeMaker makemakerdflt section: makemakerdflt : all $(NOECHO) $(NOOP) # --- MakeMaker dist section: TAR = tar TARFLAGS = cvf ZIP = zip ZIPFLAGS = -r COMPRESS = gzip --best SUFFIX = .gz SHAR = shar PREOP = $(NOECHO) $(NOOP) POSTOP = $(NOECHO) $(NOOP) TO_UNIX = $(NOECHO) $(NOOP) CI = ci -u RCS_LABEL = rcs -Nv$(VERSION_SYM): -q DIST_CP = best DIST_DEFAULT = tardist DISTNAME = LWP-Protocol-https DISTVNAME = LWP-Protocol-https-6.15 # --- MakeMaker macro section: # --- MakeMaker depend section: # --- MakeMaker cflags section: # --- MakeMaker const_loadlibs section: # --- MakeMaker const_cccmd section: # --- MakeMaker post_constants section: # --- MakeMaker pasthru section: PASTHRU = LIBPERL_A="$(LIBPERL_A)"\ LINKTYPE="$(LINKTYPE)"\ LD="$(LD)"\ PREFIX="$(PREFIX)"\ PASTHRU_DEFINE='$(DEFINE) $(PASTHRU_DEFINE)'\ PASTHRU_INC='$(INC) $(PASTHRU_INC)' # --- MakeMaker special_targets section: .SUFFIXES : .xs .c .C .cpp .i .s .cxx .cc $(OBJ_EXT) .PHONY: all config static dynamic test linkext manifest blibdirs clean realclean disttest distdir pure_all subdirs clean_subdirs makemakerdflt manifypods realclean_subdirs subdirs_dynamic subdirs_pure_nolink subdirs_static subdirs-test_dynamic subdirs-test_static test_dynamic test_static # --- MakeMaker c_o section: # --- MakeMaker xs_c section: # --- MakeMaker xs_o section: # --- MakeMaker top_targets section: all :: pure_all manifypods $(NOECHO) $(NOOP) pure_all :: config pm_to_blib subdirs linkext $(NOECHO) $(NOOP) subdirs :: $(MYEXTLIB) $(NOECHO) $(NOOP) config :: $(FIRST_MAKEFILE) blibdirs $(NOECHO) $(NOOP) help : perldoc ExtUtils::MakeMaker # --- MakeMaker blibdirs section: blibdirs : $(INST_LIBDIR)$(DFSEP).exists $(INST_ARCHLIB)$(DFSEP).exists $(INST_AUTODIR)$(DFSEP).exists $(INST_ARCHAUTODIR)$(DFSEP).exists $(INST_BIN)$(DFSEP).exists $(INST_SCRIPT)$(DFSEP).exists $(INST_MAN1DIR)$(DFSEP).exists $(INST_MAN3DIR)$(DFSEP).exists $(NOECHO) $(NOOP) # Backwards compat with 6.18 through 6.25 blibdirs.ts : blibdirs $(NOECHO) $(NOOP) $(INST_LIBDIR)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_LIBDIR) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_LIBDIR) $(NOECHO) $(TOUCH) $(INST_LIBDIR)$(DFSEP).exists $(INST_ARCHLIB)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_ARCHLIB) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_ARCHLIB) $(NOECHO) $(TOUCH) $(INST_ARCHLIB)$(DFSEP).exists $(INST_AUTODIR)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_AUTODIR) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_AUTODIR) $(NOECHO) $(TOUCH) $(INST_AUTODIR)$(DFSEP).exists $(INST_ARCHAUTODIR)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_ARCHAUTODIR) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_ARCHAUTODIR) $(NOECHO) $(TOUCH) $(INST_ARCHAUTODIR)$(DFSEP).exists $(INST_BIN)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_BIN) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_BIN) $(NOECHO) $(TOUCH) $(INST_BIN)$(DFSEP).exists $(INST_SCRIPT)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_SCRIPT) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_SCRIPT) $(NOECHO) $(TOUCH) $(INST_SCRIPT)$(DFSEP).exists $(INST_MAN1DIR)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_MAN1DIR) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_MAN1DIR) $(NOECHO) $(TOUCH) $(INST_MAN1DIR)$(DFSEP).exists $(INST_MAN3DIR)$(DFSEP).exists :: Makefile.PL $(NOECHO) $(MKPATH) $(INST_MAN3DIR) $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_MAN3DIR) $(NOECHO) $(TOUCH) $(INST_MAN3DIR)$(DFSEP).exists # --- MakeMaker linkext section: linkext :: dynamic $(NOECHO) $(NOOP) # --- MakeMaker dlsyms section: # --- MakeMaker dynamic_bs section: BOOTSTRAP = # --- MakeMaker dynamic section: dynamic :: $(FIRST_MAKEFILE) config $(INST_BOOT) $(INST_DYNAMIC) $(NOECHO) $(NOOP) # --- MakeMaker dynamic_lib section: # --- MakeMaker static section: ## $(INST_PM) has been moved to the all: target. ## It remains here for awhile to allow for old usage: "make static" static :: $(FIRST_MAKEFILE) $(INST_STATIC) $(NOECHO) $(NOOP) # --- MakeMaker static_lib section: # --- MakeMaker manifypods section: POD2MAN_EXE = $(PERLRUN) "-MExtUtils::Command::MM" -e pod2man "--" POD2MAN = $(POD2MAN_EXE) manifypods : pure_all config \ lib/LWP/Protocol/https.pm $(NOECHO) $(POD2MAN) --section=$(MAN3EXT) --perm_rw=$(PERM_RW) -u \ lib/LWP/Protocol/https.pm $(INST_MAN3DIR)/LWP::Protocol::https.$(MAN3EXT) # --- MakeMaker processPL section: # --- MakeMaker installbin section: # --- MakeMaker subdirs section: # none # --- MakeMaker clean_subdirs section: clean_subdirs : $(NOECHO) $(NOOP) # --- MakeMaker clean section: # Delete temporary files but do not touch installed files. We don't delete # the Makefile here so a later make realclean still has a makefile to use. clean :: clean_subdirs - $(RM_F) \ $(BASEEXT).bso $(BASEEXT).def \ $(BASEEXT).exp $(BASEEXT).x \ $(BOOTSTRAP) $(INST_ARCHAUTODIR)/extralibs.all \ $(INST_ARCHAUTODIR)/extralibs.ld $(MAKE_APERL_FILE) \ *$(LIB_EXT) *$(OBJ_EXT) \ *perl.core MYMETA.json \ MYMETA.yml blibdirs.ts \ core core.*perl.*.? \ core.[0-9] core.[0-9][0-9] \ core.[0-9][0-9][0-9] core.[0-9][0-9][0-9][0-9] \ core.[0-9][0-9][0-9][0-9][0-9] lib$(BASEEXT).def \ mon.out perl \ perl$(EXE_EXT) perl.exe \ perlmain.c pm_to_blib \ pm_to_blib.ts so_locations \ tmon.out - $(RM_RF) \ blib $(NOECHO) $(RM_F) $(MAKEFILE_OLD) - $(MV) $(FIRST_MAKEFILE) $(MAKEFILE_OLD) $(DEV_NULL) # --- MakeMaker realclean_subdirs section: # so clean is forced to complete before realclean_subdirs runs realclean_subdirs : clean $(NOECHO) $(NOOP) # --- MakeMaker realclean section: # Delete temporary files (via clean) and also delete dist files realclean purge :: realclean_subdirs - $(RM_F) \ $(FIRST_MAKEFILE) $(MAKEFILE_OLD) - $(RM_RF) \ $(DISTVNAME) # --- MakeMaker metafile section: metafile : create_distdir $(NOECHO) $(ECHO) Generating META.yml $(NOECHO) $(ECHO) '---' > META_new.yml $(NOECHO) $(ECHO) 'abstract: '\''Provide https support for LWP::UserAgent'\''' >> META_new.yml $(NOECHO) $(ECHO) 'author:' >> META_new.yml $(NOECHO) $(ECHO) ' - '\''Gisle Aas '\''' >> META_new.yml $(NOECHO) $(ECHO) 'build_requires:' >> META_new.yml $(NOECHO) $(ECHO) ' ExtUtils::MakeMaker: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) ' File::Spec: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) ' File::Temp: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) ' IO::Select: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) ' IO::Socket::INET: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) ' IO::Socket::SSL: '\''1.970'\''' >> META_new.yml $(NOECHO) $(ECHO) ' IO::Socket::SSL::Utils: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) ' LWP::UserAgent: '\''6.06'\''' >> META_new.yml $(NOECHO) $(ECHO) ' Socket: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) ' Test::More: '\''0.96'\''' >> META_new.yml $(NOECHO) $(ECHO) ' Test::Needs: '\''0.002010'\''' >> META_new.yml $(NOECHO) $(ECHO) ' Test::RequiresInternet: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) ' warnings: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) 'configure_requires:' >> META_new.yml $(NOECHO) $(ECHO) ' ExtUtils::MakeMaker: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) 'dynamic_config: 1' >> META_new.yml $(NOECHO) $(ECHO) 'generated_by: '\''ExtUtils::MakeMaker version 7.70, CPAN::Meta::Converter version 2.150010'\''' >> META_new.yml $(NOECHO) $(ECHO) 'license: perl' >> META_new.yml $(NOECHO) $(ECHO) 'meta-spec:' >> META_new.yml $(NOECHO) $(ECHO) ' url: http://module-build.sourceforge.net/META-spec-v1.4.html' >> META_new.yml $(NOECHO) $(ECHO) ' version: '\''1.4'\''' >> META_new.yml $(NOECHO) $(ECHO) 'name: LWP-Protocol-https' >> META_new.yml $(NOECHO) $(ECHO) 'no_index:' >> META_new.yml $(NOECHO) $(ECHO) ' directory:' >> META_new.yml $(NOECHO) $(ECHO) ' - t' >> META_new.yml $(NOECHO) $(ECHO) ' - inc' >> META_new.yml $(NOECHO) $(ECHO) 'requires:' >> META_new.yml $(NOECHO) $(ECHO) ' IO::Socket::SSL: '\''1.970'\''' >> META_new.yml $(NOECHO) $(ECHO) ' LWP::Protocol::http: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) ' LWP::UserAgent: '\''6.06'\''' >> META_new.yml $(NOECHO) $(ECHO) ' Net::HTTPS: '\''6'\''' >> META_new.yml $(NOECHO) $(ECHO) ' base: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) ' perl: '\''5.008001'\''' >> META_new.yml $(NOECHO) $(ECHO) ' strict: '\''0'\''' >> META_new.yml $(NOECHO) $(ECHO) 'version: '\''6.15'\''' >> META_new.yml $(NOECHO) $(ECHO) 'x_serialization_backend: '\''CPAN::Meta::YAML version 0.020'\''' >> META_new.yml -$(NOECHO) $(MV) META_new.yml $(DISTVNAME)/META.yml $(NOECHO) $(ECHO) Generating META.json $(NOECHO) $(ECHO) '{' > META_new.json $(NOECHO) $(ECHO) ' "abstract" : "Provide https support for LWP::UserAgent",' >> META_new.json $(NOECHO) $(ECHO) ' "author" : [' >> META_new.json $(NOECHO) $(ECHO) ' "Gisle Aas "' >> META_new.json $(NOECHO) $(ECHO) ' ],' >> META_new.json $(NOECHO) $(ECHO) ' "dynamic_config" : 1,' >> META_new.json $(NOECHO) $(ECHO) ' "generated_by" : "ExtUtils::MakeMaker version 7.70, CPAN::Meta::Converter version 2.150010",' >> META_new.json $(NOECHO) $(ECHO) ' "license" : [' >> META_new.json $(NOECHO) $(ECHO) ' "perl_5"' >> META_new.json $(NOECHO) $(ECHO) ' ],' >> META_new.json $(NOECHO) $(ECHO) ' "meta-spec" : {' >> META_new.json $(NOECHO) $(ECHO) ' "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",' >> META_new.json $(NOECHO) $(ECHO) ' "version" : 2' >> META_new.json $(NOECHO) $(ECHO) ' },' >> META_new.json $(NOECHO) $(ECHO) ' "name" : "LWP-Protocol-https",' >> META_new.json $(NOECHO) $(ECHO) ' "no_index" : {' >> META_new.json $(NOECHO) $(ECHO) ' "directory" : [' >> META_new.json $(NOECHO) $(ECHO) ' "t",' >> META_new.json $(NOECHO) $(ECHO) ' "inc"' >> META_new.json $(NOECHO) $(ECHO) ' ]' >> META_new.json $(NOECHO) $(ECHO) ' },' >> META_new.json $(NOECHO) $(ECHO) ' "prereqs" : {' >> META_new.json $(NOECHO) $(ECHO) ' "build" : {' >> META_new.json $(NOECHO) $(ECHO) ' "requires" : {' >> META_new.json $(NOECHO) $(ECHO) ' "ExtUtils::MakeMaker" : "0"' >> META_new.json $(NOECHO) $(ECHO) ' }' >> META_new.json $(NOECHO) $(ECHO) ' },' >> META_new.json $(NOECHO) $(ECHO) ' "configure" : {' >> META_new.json $(NOECHO) $(ECHO) ' "requires" : {' >> META_new.json $(NOECHO) $(ECHO) ' "ExtUtils::MakeMaker" : "0"' >> META_new.json $(NOECHO) $(ECHO) ' }' >> META_new.json $(NOECHO) $(ECHO) ' },' >> META_new.json $(NOECHO) $(ECHO) ' "runtime" : {' >> META_new.json $(NOECHO) $(ECHO) ' "requires" : {' >> META_new.json $(NOECHO) $(ECHO) ' "IO::Socket::SSL" : "1.970",' >> META_new.json $(NOECHO) $(ECHO) ' "LWP::Protocol::http" : "0",' >> META_new.json $(NOECHO) $(ECHO) ' "LWP::UserAgent" : "6.06",' >> META_new.json $(NOECHO) $(ECHO) ' "Net::HTTPS" : "6",' >> META_new.json $(NOECHO) $(ECHO) ' "base" : "0",' >> META_new.json $(NOECHO) $(ECHO) ' "perl" : "5.008001",' >> META_new.json $(NOECHO) $(ECHO) ' "strict" : "0"' >> META_new.json $(NOECHO) $(ECHO) ' }' >> META_new.json $(NOECHO) $(ECHO) ' },' >> META_new.json $(NOECHO) $(ECHO) ' "test" : {' >> META_new.json $(NOECHO) $(ECHO) ' "requires" : {' >> META_new.json $(NOECHO) $(ECHO) ' "ExtUtils::MakeMaker" : "0",' >> META_new.json $(NOECHO) $(ECHO) ' "File::Spec" : "0",' >> META_new.json $(NOECHO) $(ECHO) ' "File::Temp" : "0",' >> META_new.json $(NOECHO) $(ECHO) ' "IO::Select" : "0",' >> META_new.json $(NOECHO) $(ECHO) ' "IO::Socket::INET" : "0",' >> META_new.json $(NOECHO) $(ECHO) ' "IO::Socket::SSL" : "1.970",' >> META_new.json $(NOECHO) $(ECHO) ' "IO::Socket::SSL::Utils" : "0",' >> META_new.json $(NOECHO) $(ECHO) ' "LWP::UserAgent" : "6.06",' >> META_new.json $(NOECHO) $(ECHO) ' "Socket" : "0",' >> META_new.json $(NOECHO) $(ECHO) ' "Test::More" : "0.96",' >> META_new.json $(NOECHO) $(ECHO) ' "Test::Needs" : "0.002010",' >> META_new.json $(NOECHO) $(ECHO) ' "Test::RequiresInternet" : "0",' >> META_new.json $(NOECHO) $(ECHO) ' "warnings" : "0"' >> META_new.json $(NOECHO) $(ECHO) ' }' >> META_new.json $(NOECHO) $(ECHO) ' }' >> META_new.json $(NOECHO) $(ECHO) ' },' >> META_new.json $(NOECHO) $(ECHO) ' "release_status" : "stable",' >> META_new.json $(NOECHO) $(ECHO) ' "version" : "6.15",' >> META_new.json $(NOECHO) $(ECHO) ' "x_serialization_backend" : "JSON::PP version 4.16"' >> META_new.json $(NOECHO) $(ECHO) '}' >> META_new.json -$(NOECHO) $(MV) META_new.json $(DISTVNAME)/META.json # --- MakeMaker signature section: signature : cpansign -s # --- MakeMaker dist_basics section: distclean :: realclean distcheck $(NOECHO) $(NOOP) distcheck : $(PERLRUN) "-MExtUtils::Manifest=fullcheck" -e fullcheck skipcheck : $(PERLRUN) "-MExtUtils::Manifest=skipcheck" -e skipcheck manifest : $(PERLRUN) "-MExtUtils::Manifest=mkmanifest" -e mkmanifest veryclean : realclean $(RM_F) *~ */*~ *.orig */*.orig *.bak */*.bak *.old */*.old # --- MakeMaker dist_core section: dist : $(DIST_DEFAULT) $(FIRST_MAKEFILE) $(NOECHO) $(ABSPERLRUN) -l -e 'print '\''Warning: Makefile possibly out of date with $(VERSION_FROM)'\''' \ -e ' if -e '\''$(VERSION_FROM)'\'' and -M '\''$(VERSION_FROM)'\'' < -M '\''$(FIRST_MAKEFILE)'\'';' -- tardist : $(DISTVNAME).tar$(SUFFIX) $(NOECHO) $(NOOP) uutardist : $(DISTVNAME).tar$(SUFFIX) uuencode $(DISTVNAME).tar$(SUFFIX) $(DISTVNAME).tar$(SUFFIX) > $(DISTVNAME).tar$(SUFFIX)_uu $(NOECHO) $(ECHO) 'Created $(DISTVNAME).tar$(SUFFIX)_uu' $(DISTVNAME).tar$(SUFFIX) : distdir $(PREOP) $(TO_UNIX) $(TAR) $(TARFLAGS) $(DISTVNAME).tar $(DISTVNAME) $(RM_RF) $(DISTVNAME) $(COMPRESS) $(DISTVNAME).tar $(NOECHO) $(ECHO) 'Created $(DISTVNAME).tar$(SUFFIX)' $(POSTOP) zipdist : $(DISTVNAME).zip $(NOECHO) $(NOOP) $(DISTVNAME).zip : distdir $(PREOP) $(ZIP) $(ZIPFLAGS) $(DISTVNAME).zip $(DISTVNAME) $(RM_RF) $(DISTVNAME) $(NOECHO) $(ECHO) 'Created $(DISTVNAME).zip' $(POSTOP) shdist : distdir $(PREOP) $(SHAR) $(DISTVNAME) > $(DISTVNAME).shar $(RM_RF) $(DISTVNAME) $(NOECHO) $(ECHO) 'Created $(DISTVNAME).shar' $(POSTOP) # --- MakeMaker distdir section: create_distdir : $(RM_RF) $(DISTVNAME) $(PERLRUN) "-MExtUtils::Manifest=manicopy,maniread" \ -e "manicopy(maniread(),'$(DISTVNAME)', '$(DIST_CP)');" distdir : create_distdir distmeta $(NOECHO) $(NOOP) # --- MakeMaker dist_test section: disttest : distdir cd $(DISTVNAME) && $(ABSPERLRUN) Makefile.PL cd $(DISTVNAME) && $(MAKE) $(PASTHRU) cd $(DISTVNAME) && $(MAKE) test $(PASTHRU) # --- MakeMaker dist_ci section: ci : $(ABSPERLRUN) -MExtUtils::Manifest=maniread -e '@all = sort keys %{ maniread() };' \ -e 'print(qq{Executing $(CI) @all\n});' \ -e 'system(qq{$(CI) @all}) == 0 or die $$!;' \ -e 'print(qq{Executing $(RCS_LABEL) ...\n});' \ -e 'system(qq{$(RCS_LABEL) @all}) == 0 or die $$!;' -- # --- MakeMaker distmeta section: distmeta : create_distdir metafile $(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'exit unless -e q{META.yml};' \ -e 'eval { maniadd({q{META.yml} => q{Module YAML meta-data (added by MakeMaker)}}) }' \ -e ' or die "Could not add META.yml to MANIFEST: $${'\''@'\''}"' -- $(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'exit unless -f q{META.json};' \ -e 'eval { maniadd({q{META.json} => q{Module JSON meta-data (added by MakeMaker)}}) }' \ -e ' or die "Could not add META.json to MANIFEST: $${'\''@'\''}"' -- # --- MakeMaker distsignature section: distsignature : distmeta $(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'eval { maniadd({q{SIGNATURE} => q{Public-key signature (added by MakeMaker)}}) }' \ -e ' or die "Could not add SIGNATURE to MANIFEST: $${'\''@'\''}"' -- $(NOECHO) cd $(DISTVNAME) && $(TOUCH) SIGNATURE cd $(DISTVNAME) && cpansign -s # --- MakeMaker install section: install :: pure_install doc_install $(NOECHO) $(NOOP) install_perl :: pure_perl_install doc_perl_install $(NOECHO) $(NOOP) install_site :: pure_site_install doc_site_install $(NOECHO) $(NOOP) install_vendor :: pure_vendor_install doc_vendor_install $(NOECHO) $(NOOP) pure_install :: pure_$(INSTALLDIRS)_install $(NOECHO) $(NOOP) doc_install :: doc_$(INSTALLDIRS)_install $(NOECHO) $(NOOP) pure__install : pure_site_install $(NOECHO) $(ECHO) INSTALLDIRS not defined, defaulting to INSTALLDIRS=site doc__install : doc_site_install $(NOECHO) $(ECHO) INSTALLDIRS not defined, defaulting to INSTALLDIRS=site pure_perl_install :: all $(NOECHO) umask 022; $(MOD_INSTALL) \ "$(INST_LIB)" "$(DESTINSTALLPRIVLIB)" \ "$(INST_ARCHLIB)" "$(DESTINSTALLARCHLIB)" \ "$(INST_BIN)" "$(DESTINSTALLBIN)" \ "$(INST_SCRIPT)" "$(DESTINSTALLSCRIPT)" \ "$(INST_MAN1DIR)" "$(DESTINSTALLMAN1DIR)" \ "$(INST_MAN3DIR)" "$(DESTINSTALLMAN3DIR)" $(NOECHO) $(WARN_IF_OLD_PACKLIST) \ "$(SITEARCHEXP)/auto/$(FULLEXT)" pure_site_install :: all $(NOECHO) umask 02; $(MOD_INSTALL) \ read "$(SITEARCHEXP)/auto/$(FULLEXT)/.packlist" \ write "$(DESTINSTALLSITEARCH)/auto/$(FULLEXT)/.packlist" \ "$(INST_LIB)" "$(DESTINSTALLSITELIB)" \ "$(INST_ARCHLIB)" "$(DESTINSTALLSITEARCH)" \ "$(INST_BIN)" "$(DESTINSTALLSITEBIN)" \ "$(INST_SCRIPT)" "$(DESTINSTALLSITESCRIPT)" \ "$(INST_MAN1DIR)" "$(DESTINSTALLSITEMAN1DIR)" \ "$(INST_MAN3DIR)" "$(DESTINSTALLSITEMAN3DIR)" $(NOECHO) $(WARN_IF_OLD_PACKLIST) \ "$(PERL_ARCHLIB)/auto/$(FULLEXT)" pure_vendor_install :: all $(NOECHO) umask 022; $(MOD_INSTALL) \ "$(INST_LIB)" "$(DESTINSTALLVENDORLIB)" \ "$(INST_ARCHLIB)" "$(DESTINSTALLVENDORARCH)" \ "$(INST_BIN)" "$(DESTINSTALLVENDORBIN)" \ "$(INST_SCRIPT)" "$(DESTINSTALLVENDORSCRIPT)" \ "$(INST_MAN1DIR)" "$(DESTINSTALLVENDORMAN1DIR)" \ "$(INST_MAN3DIR)" "$(DESTINSTALLVENDORMAN3DIR)" doc_perl_install :: all doc_site_install :: all $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLSITEARCH)/perllocal.pod" -$(NOECHO) umask 02; $(MKPATH) "$(DESTINSTALLSITEARCH)" -$(NOECHO) umask 02; $(DOC_INSTALL) \ "Module" "$(NAME)" \ "installed into" "$(INSTALLSITELIB)" \ LINKTYPE "$(LINKTYPE)" \ VERSION "$(VERSION)" \ EXE_FILES "$(EXE_FILES)" \ >> "$(DESTINSTALLSITEARCH)/perllocal.pod" doc_vendor_install :: all uninstall :: uninstall_from_$(INSTALLDIRS)dirs $(NOECHO) $(NOOP) uninstall_from_perldirs :: uninstall_from_sitedirs :: $(NOECHO) $(UNINSTALL) "$(SITEARCHEXP)/auto/$(FULLEXT)/.packlist" uninstall_from_vendordirs :: # --- MakeMaker force section: # Phony target to force checking subdirectories. FORCE : $(NOECHO) $(NOOP) # --- MakeMaker perldepend section: # --- MakeMaker makefile section: # We take a very conservative approach here, but it's worth it. # We move Makefile to Makefile.old here to avoid gnu make looping. $(FIRST_MAKEFILE) : Makefile.PL $(CONFIGDEP) $(NOECHO) $(ECHO) "Makefile out-of-date with respect to $?" $(NOECHO) $(ECHO) "Cleaning current config before rebuilding Makefile..." -$(NOECHO) $(RM_F) $(MAKEFILE_OLD) -$(NOECHO) $(MV) $(FIRST_MAKEFILE) $(MAKEFILE_OLD) - $(MAKE) $(USEMAKEFILE) $(MAKEFILE_OLD) clean $(DEV_NULL) $(PERLRUN) Makefile.PL $(NOECHO) $(ECHO) "==> Your Makefile has been rebuilt. <==" $(NOECHO) $(ECHO) "==> Please rerun the $(MAKE) command. <==" $(FALSE) # --- MakeMaker staticmake section: # --- MakeMaker makeaperl section --- MAP_TARGET = perl FULLPERL = "/usr/bin/perl" MAP_PERLINC = "-Iblib/arch" "-Iblib/lib" "-I/usr/lib/x86_64-linux-gnu/perl/5.38" "-I/usr/share/perl/5.38" $(MAP_TARGET) :: $(MAKE_APERL_FILE) $(MAKE) $(USEMAKEFILE) $(MAKE_APERL_FILE) $@ $(MAKE_APERL_FILE) : static $(FIRST_MAKEFILE) pm_to_blib $(NOECHO) $(ECHO) Writing \"$(MAKE_APERL_FILE)\" for this $(MAP_TARGET) $(NOECHO) $(PERLRUNINST) \ Makefile.PL DIR="" \ MAKEFILE=$(MAKE_APERL_FILE) LINKTYPE=static \ MAKEAPERL=1 NORECURS=1 CCCDLFLAGS= # --- MakeMaker test section: TEST_VERBOSE=0 TEST_TYPE=test_$(LINKTYPE) TEST_FILE = test.pl TEST_FILES = t/*.t TESTDB_SW = -d testdb :: testdb_$(LINKTYPE) $(NOECHO) $(NOOP) test :: $(TEST_TYPE) $(NOECHO) $(NOOP) # Occasionally we may face this degenerate target: test_ : test_dynamic $(NOECHO) $(NOOP) subdirs-test_dynamic :: dynamic pure_all test_dynamic :: subdirs-test_dynamic PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES) testdb_dynamic :: dynamic pure_all PERL_DL_NONLAZY=1 $(FULLPERLRUN) $(TESTDB_SW) "-I$(INST_LIB)" "-I$(INST_ARCHLIB)" $(TEST_FILE) subdirs-test_static :: static pure_all test_static :: subdirs-test_static PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES) testdb_static :: static pure_all PERL_DL_NONLAZY=1 $(FULLPERLRUN) $(TESTDB_SW) "-I$(INST_LIB)" "-I$(INST_ARCHLIB)" $(TEST_FILE) # --- MakeMaker ppd section: # Creates a PPD (Perl Package Description) for a binary distribution. ppd : $(NOECHO) $(ECHO) '' > LWP-Protocol-https.ppd $(NOECHO) $(ECHO) ' Provide https support for LWP::UserAgent' >> LWP-Protocol-https.ppd $(NOECHO) $(ECHO) ' Gisle Aas <gisle@activestate.com>' >> LWP-Protocol-https.ppd $(NOECHO) $(ECHO) ' ' >> LWP-Protocol-https.ppd $(NOECHO) $(ECHO) ' ' >> LWP-Protocol-https.ppd $(NOECHO) $(ECHO) ' ' >> LWP-Protocol-https.ppd $(NOECHO) $(ECHO) ' ' >> LWP-Protocol-https.ppd $(NOECHO) $(ECHO) ' ' >> LWP-Protocol-https.ppd $(NOECHO) $(ECHO) ' ' >> LWP-Protocol-https.ppd $(NOECHO) $(ECHO) ' ' >> LWP-Protocol-https.ppd $(NOECHO) $(ECHO) ' ' >> LWP-Protocol-https.ppd $(NOECHO) $(ECHO) ' ' >> LWP-Protocol-https.ppd $(NOECHO) $(ECHO) ' ' >> LWP-Protocol-https.ppd $(NOECHO) $(ECHO) ' ' >> LWP-Protocol-https.ppd $(NOECHO) $(ECHO) '' >> LWP-Protocol-https.ppd # --- MakeMaker pm_to_blib section: pm_to_blib : $(FIRST_MAKEFILE) $(TO_INST_PM) $(NOECHO) $(ABSPERLRUN) -MExtUtils::Install -e 'pm_to_blib({@ARGV}, '\''$(INST_LIB)/auto'\'', q[$(PM_FILTER)], '\''$(PERM_DIR)'\'')' -- \ 'lib/LWP/Protocol/https.pm' 'blib/lib/LWP/Protocol/https.pm' $(NOECHO) $(TOUCH) pm_to_blib # --- MakeMaker selfdocument section: # here so even if top_targets is overridden, these will still be defined # gmake will silently still work if any are .PHONY-ed but nmake won't static :: $(NOECHO) $(NOOP) dynamic :: $(NOECHO) $(NOOP) config :: $(NOECHO) $(NOOP) # --- MakeMaker postamble section: # End. work/1776643672.97974/LWP-Protocol-https-6.15/LICENSE000064400000046270152424177470014353 0ustar00This software is copyright (c) 1997 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. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 1997 by Gisle Aas. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see . Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Moe Ghoul, President of Vice That's all there is to it! --- The Perl Artistic License 1.0 --- This software is Copyright (c) 1997 by Gisle Aas. This is free software, licensed under: The Perl Artistic License 1.0 The "Artistic License" Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder as specified below. "Copyright Holder" is whoever is named in the copyright or copyrights for the package. "You" is you, if you're thinking about copying or distributing this Package. "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as uunet.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) give non-standard executables non-standard names, and clearly document the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. You may embed this Package's interpreter within an executable of yours (by linking); this shall be construed as a mere form of aggregation, provided that the complete Standard Version of the interpreter is so embedded. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whoever generated them, and may be sold commercially, and may be aggregated with this Package. If such scripts or library files are aggregated with this Package via the so-called "undump" or "unexec" methods of producing a binary executable image, then distribution of such an image shall neither be construed as a distribution of this Package nor shall it fall under the restrictions of Paragraphs 3 and 4, provided that you do not represent such an executable image as a Standard Version of this Package. 7. C subroutines (or comparably compiled subroutines in other languages) supplied by you and linked into this Package in order to emulate subroutines and variables of the language defined by this Package shall not be considered part of this Package, but are the equivalent of input as in Paragraph 6, provided these subroutines do not change the language in any way that would cause it to fail the regression tests for the language. 8. Aggregation of this Package with a commercial distribution is always permitted provided that the use of this Package is embedded; that is, when no overt attempt is made to make this Package's interfaces visible to the end user of the commercial distribution. Such use shall not be construed as a distribution of this Package. 9. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End work/1776643672.97974/LWP-Protocol-https-6.15/META.yml000064400000040430152424177470014607 0ustar00--- abstract: 'Provide https support for LWP::UserAgent' author: - 'Gisle Aas ' build_requires: ExtUtils::MakeMaker: '0' File::Spec: '0' File::Temp: '0' IO::Select: '0' IO::Socket::INET: '0' IO::Socket::SSL: '1.970' IO::Socket::SSL::Utils: '0' LWP::UserAgent: '6.06' Socket: '0' Test::More: '0.96' Test::Needs: '0.002010' Test::RequiresInternet: '0' perl: '5.008001' warnings: '0' configure_requires: ExtUtils::MakeMaker: '0' perl: '5.008001' dynamic_config: 0 generated_by: 'Dist::Zilla version 6.033, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: LWP-Protocol-https no_index: directory: - t - xt provides: LWP::Protocol::https: file: lib/LWP/Protocol/https.pm version: '6.15' LWP::Protocol::https::Socket: file: lib/LWP/Protocol/https.pm version: '6.15' requires: IO::Socket::SSL: '1.970' LWP::Protocol::http: '0' LWP::UserAgent: '6.06' Net::HTTPS: '6' base: '0' perl: '5.008001' strict: '0' resources: IRC: irc://irc.perl.org/#lwp MailingList: mailto:libwww@perl.org bugtracker: https://github.com/libwww-perl/LWP-Protocol-https/issues homepage: https://github.com/libwww-perl/LWP-Protocol-https repository: https://github.com/libwww-perl/LWP-Protocol-https.git version: '6.15' x_Dist_Zilla: perl: version: '5.042000' plugins: - class: Dist::Zilla::Plugin::Git::GatherDir config: Dist::Zilla::Plugin::GatherDir: exclude_filename: - LICENSE - META.json - Makefile.PL - README.md exclude_match: [] include_dotfiles: 0 prefix: '' prune_directory: [] root: . Dist::Zilla::Plugin::Git::GatherDir: include_untracked: 0 name: Git::GatherDir version: '2.052' - class: Dist::Zilla::Plugin::PruneCruft name: PruneCruft version: '6.033' - class: Dist::Zilla::Plugin::MetaConfig name: MetaConfig version: '6.033' - class: Dist::Zilla::Plugin::MetaProvides::Package config: Dist::Zilla::Plugin::MetaProvides::Package: finder_objects: - class: Dist::Zilla::Plugin::FinderCode name: MetaProvides::Package/AUTOVIV/:InstallModulesPM version: '6.033' include_underscores: 0 Dist::Zilla::Role::MetaProvider::Provider: $Dist::Zilla::Role::MetaProvider::Provider::VERSION: '2.002004' inherit_missing: 1 inherit_version: 1 meta_noindex: 1 Dist::Zilla::Role::ModuleMetadata: Module::Metadata: '1.000038' version: '0.006' name: MetaProvides::Package version: '2.004003' - class: Dist::Zilla::Plugin::MetaNoIndex name: MetaNoIndex version: '6.033' - class: Dist::Zilla::Plugin::MetaYAML name: MetaYAML version: '6.033' - class: Dist::Zilla::Plugin::MetaJSON name: MetaJSON version: '6.033' - class: Dist::Zilla::Plugin::MetaResources name: MetaResources version: '6.033' - class: Dist::Zilla::Plugin::Git::Check config: Dist::Zilla::Plugin::Git::Check: untracked_files: die Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - LICENSE - META.json - Makefile.PL - README.md allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: git_version: 2.43.0 repo_root: . name: Git::Check version: '2.052' - class: Dist::Zilla::Plugin::Git::Contributors config: Dist::Zilla::Plugin::Git::Contributors: git_version: 2.43.0 include_authors: 0 include_releaser: 1 order_by: name paths: [] name: Git::Contributors version: '0.038' - class: Dist::Zilla::Plugin::GithubMeta name: GithubMeta version: '0.58' - class: Dist::Zilla::Plugin::Manifest name: Manifest version: '6.033' - class: Dist::Zilla::Plugin::License name: License version: '6.033' - class: Dist::Zilla::Plugin::ReadmeAnyFromPod config: Dist::Zilla::Role::FileWatcher: version: '0.006' name: Markdown_Readme version: '0.163250' - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: recommends name: '@Git::VersionManager/pluginbundle version' version: '6.033' - class: Dist::Zilla::Plugin::RewriteVersion::Transitional config: Dist::Zilla::Plugin::RewriteVersion: add_tarball_name: 0 finders: - ':ExecFiles' - ':InstallModules' global: 0 skip_version_provider: 0 Dist::Zilla::Plugin::RewriteVersion::Transitional: {} name: '@Git::VersionManager/RewriteVersion::Transitional' version: '0.009' - class: Dist::Zilla::Plugin::MetaProvides::Update name: '@Git::VersionManager/MetaProvides::Update' version: '0.007' - class: Dist::Zilla::Plugin::CopyFilesFromRelease config: Dist::Zilla::Plugin::CopyFilesFromRelease: filename: - Changes match: [] name: '@Git::VersionManager/CopyFilesFromRelease' version: '0.007' - class: Dist::Zilla::Plugin::Git::Commit config: Dist::Zilla::Plugin::Git::Commit: add_files_in: [] commit_msg: v%V%n%n%c signoff: 0 Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - Changes - LICENSE - META.json - Makefile.PL allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: git_version: 2.43.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Git::VersionManager/release snapshot' version: '2.052' - class: Dist::Zilla::Plugin::Git::Tag config: Dist::Zilla::Plugin::Git::Tag: branch: ~ changelog: Changes signed: 0 tag: v6.15 tag_format: v%V tag_message: v%V Dist::Zilla::Role::Git::Repo: git_version: 2.43.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Git::VersionManager/Git::Tag' version: '2.052' - class: Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional config: Dist::Zilla::Plugin::BumpVersionAfterRelease: finders: - ':ExecFiles' - ':InstallModules' global: 0 munge_makefile_pl: 1 Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional: {} name: '@Git::VersionManager/BumpVersionAfterRelease::Transitional' version: '0.009' - class: Dist::Zilla::Plugin::NextRelease name: '@Git::VersionManager/NextRelease' version: '6.033' - class: Dist::Zilla::Plugin::Git::Commit config: Dist::Zilla::Plugin::Git::Commit: add_files_in: [] commit_msg: 'increment $VERSION after %v release' signoff: 0 Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - Build.PL - Changes - Makefile.PL allow_dirty_match: - (?^:^lib/.*\.pm$) changelog: Changes Dist::Zilla::Role::Git::Repo: git_version: 2.43.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Git::VersionManager/post-release commit' version: '2.052' - class: Dist::Zilla::Plugin::Prereqs::FromCPANfile name: Prereqs::FromCPANfile version: '0.08' - class: Dist::Zilla::Plugin::MakeMaker::Awesome config: Dist::Zilla::Plugin::MakeMaker: make_path: make version: '6.033' Dist::Zilla::Role::TestRunner: default_jobs: '8' version: '6.033' name: MakeMaker::Awesome version: '0.49' - class: Dist::Zilla::Plugin::CheckChangeLog name: CheckChangeLog version: '0.05' - class: Dist::Zilla::Plugin::CheckChangesHasContent name: CheckChangesHasContent version: '0.011' - class: Dist::Zilla::Plugin::Test::Kwalitee config: Dist::Zilla::Plugin::Test::Kwalitee: filename: xt/author/kwalitee.t skiptest: - has_readme name: Test::Kwalitee version: '2.12' - class: Dist::Zilla::Plugin::MojibakeTests name: MojibakeTests version: '0.8' - class: Dist::Zilla::Plugin::Test::Version name: Test::Version version: '1.09' - class: Dist::Zilla::Plugin::Test::ReportPrereqs name: Test::ReportPrereqs version: '0.029' - class: Dist::Zilla::Plugin::Test::Compile config: Dist::Zilla::Plugin::Test::Compile: bail_out_on_fail: '1' fail_on_warning: author fake_home: 0 filename: xt/author/00-compile.t module_finder: - ':InstallModules' needs_display: 0 phase: develop script_finder: - ':PerlExecFiles' skips: [] switch: [] name: Test::Compile version: '2.058' - class: Dist::Zilla::Plugin::Test::Portability config: Dist::Zilla::Plugin::Test::Portability: options: '' name: Test::Portability version: '2.001003' - class: Dist::Zilla::Plugin::Test::CleanNamespaces config: Dist::Zilla::Plugin::Test::CleanNamespaces: filename: xt/author/clean-namespaces.t skips: [] name: Test::CleanNamespaces version: '0.006' - class: Dist::Zilla::Plugin::Test::EOL config: Dist::Zilla::Plugin::Test::EOL: filename: xt/author/eol.t finder: - ':ExecFiles' - ':InstallModules' - ':TestFiles' trailing_whitespace: 1 name: Test::EOL version: '0.19' - class: Dist::Zilla::Plugin::MetaTests name: MetaTests version: '6.033' - class: Dist::Zilla::Plugin::Test::MinimumVersion config: Dist::Zilla::Plugin::Test::MinimumVersion: max_target_perl: ~ name: Test::MinimumVersion version: '2.000011' - class: Dist::Zilla::Plugin::PodSyntaxTests name: PodSyntaxTests version: '6.033' - class: Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable name: Test::Pod::Coverage::Configurable version: '0.07' - class: Dist::Zilla::Plugin::Test::PodSpelling config: Dist::Zilla::Plugin::Test::PodSpelling: directories: - bin - lib spell_cmd: 'aspell list' stopwords: [] wordlist: Pod::Wordlist name: Test::PodSpelling version: '2.007006' - class: Dist::Zilla::Plugin::RunExtraTests config: Dist::Zilla::Role::TestRunner: default_jobs: '8' name: RunExtraTests version: '0.029' - class: Dist::Zilla::Plugin::CheckStrictVersion name: CheckStrictVersion version: '0.001' - class: Dist::Zilla::Plugin::CopyFilesFromBuild name: CopyFilesFromBuild version: '0.170880' - class: Dist::Zilla::Plugin::TestRelease name: TestRelease version: '6.033' - class: Dist::Zilla::Plugin::ConfirmRelease name: ConfirmRelease version: '6.033' - class: Dist::Zilla::Plugin::UploadToCPAN name: UploadToCPAN version: '6.033' - class: Dist::Zilla::Plugin::Git::Push config: Dist::Zilla::Plugin::Git::Push: push_to: - origin remotes_must_exist: 1 Dist::Zilla::Role::Git::Repo: git_version: 2.43.0 repo_root: . name: Git::Push version: '2.052' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':ExtraTestFiles' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':PerlExecFiles' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':AllFiles' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':NoFiles' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: MetaProvides::Package/AUTOVIV/:InstallModulesPM version: '6.033' zilla: class: Dist::Zilla::Dist::Builder config: is_trial: 0 version: '6.033' x_contributors: - 'Adam Kennedy ' - 'Adam Sjogren ' - 'Alexandr Ciornii ' - 'Alexey Tourbin ' - 'Alex Kapranoff ' - 'amire80 ' - 'Andreas J. Koenig ' - 'Axel Burri ' - 'Bill Mann ' - 'Bron Gondwana ' - 'Chase Whitener ' - 'Christopher J. Madsen ' - 'cpansprout ' - 'Dan Book ' - 'Daniel Hedlund ' - 'David E. Wheeler ' - 'David Golden ' - 'DAVIDRW ' - 'dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>' - 'Dmitriy Shamatrin ' - 'drieux ' - 'Father Chrysostomos ' - 'FWILES ' - 'Gavin Peters ' - 'Gianni Ceccarelli ' - 'Gisle Aas ' - 'Graeme Thompson ' - 'Hans-H. Froehlich ' - 'Ian Kilgore ' - 'Jacob J ' - 'Jakub Wilk ' - 'jefflee ' - 'JJ Merelo ' - 'john9art ' - 'Jon Jensen ' - 'Karen Etheridge ' - 'Leo Lapworth ' - 'Marin Tsanov ' - 'Mark Stosberg ' - 'Michael G. Schwern ' - 'Mike Schilli ' - 'Mohammad S Anwar ' - 'murphy ' - 'Nicolas R ' - 'Olaf Alders ' - 'Ondrej Hanak ' - 'openstrike ' - 'Peter Rabbitson ' - 'phrstbrn ' - 'Randy Stauner ' - 'Robert Stone ' - 'Rolf Grossmann ' - 'ruff ' - 'sasao ' - 'Sean M. Burke ' - 'Shoichi Kaji ' - 'Slaven Rezic ' - 'Spiros Denaxas ' - 'Steffen Ullrich ' - 'Steffen Ullrich ' - 'Steve Hay ' - 'Tim Couzins ' - 'Todd Lipcon ' - 'Tom Hukins ' - 'Tony Finch ' - 'Toru Yamaguchi ' - 'uid39246 ' - 'Ville Skyttä ' - 'Yuri Karaban ' - 'Yury Zavarin ' - 'Zefram ' x_generated_by_perl: v5.42.0 x_serialization_backend: 'YAML::Tiny version 1.76' x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later' work/1776643672.97974/LWP-Protocol-https-6.15/lib/LWP/Protocol/https.pm000064400000013533152424177470020053 0ustar00package LWP::Protocol::https; use strict; use warnings; our $VERSION = '6.15'; use parent qw(LWP::Protocol::http); require Net::HTTPS; sub socket_type { return "https"; } sub _extra_sock_opts { my $self = shift; my %ssl_opts = %{$self->{ua}{ssl_opts} || {}}; if (delete $ssl_opts{verify_hostname}) { $ssl_opts{SSL_verify_mode} ||= 1; $ssl_opts{SSL_verifycn_scheme} = 'www'; } else { if ( $Net::HTTPS::SSL_SOCKET_CLASS eq 'Net::SSL' ) { $ssl_opts{SSL_verifycn_scheme} = ''; } else { $ssl_opts{SSL_verifycn_scheme} = 'none'; } } if ($ssl_opts{SSL_verify_mode}) { unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) { if ($Net::HTTPS::SSL_SOCKET_CLASS eq 'IO::Socket::SSL' && defined &IO::Socket::SSL::default_ca && IO::Socket::SSL::default_ca() ) { # IO::Socket::SSL has a usable default CA } elsif ( my $cafile = eval { require Mozilla::CA; Mozilla::CA::SSL_ca_file() }) { # use Mozilla::CA $ssl_opts{SSL_ca_file} = $cafile; } else { die <<'EOT'; Can't verify SSL peers without knowing which Certificate Authorities to trust. This problem can be fixed by either setting the PERL_LWP_SSL_CA_FILE environment variable to the file where your trusted CA are, or by installing the Mozilla::CA module for set of commonly trusted CAs. To completely disable the verification that you talk to the correct SSL peer you can set SSL_verify_mode to 0 within ssl_opts. But, if you do this you can't be sure that you communicate with the expected peer. EOT } } } $self->{ssl_opts} = \%ssl_opts; return (%ssl_opts, MultiHomed => 1, $self->SUPER::_extra_sock_opts); } # This is a subclass of LWP::Protocol::http. # That parent class calls ->_check_sock() during the # request method. This allows us to hook in and run checks # sub _check_sock # { # my($self, $req, $sock) = @_; # } sub _get_sock_info { my $self = shift; $self->SUPER::_get_sock_info(@_); my($res, $sock) = @_; if ($sock->can('get_sslversion') and my $sslversion = $sock->get_sslversion) { $res->header("Client-SSL-Version" => $sslversion); } $res->header("Client-SSL-Cipher" => $sock->get_cipher); my $cert = $sock->get_peer_certificate; if ($cert) { $res->header("Client-SSL-Cert-Subject" => $cert->subject_name); $res->header("Client-SSL-Cert-Issuer" => $cert->issuer_name); } if (!$self->{ssl_opts}{SSL_verify_mode}) { $res->push_header("Client-SSL-Warning" => "Peer certificate not verified"); } elsif (!$self->{ssl_opts}{SSL_verifycn_scheme}) { $res->push_header("Client-SSL-Warning" => "Peer hostname match with certificate not verified"); } $res->header("Client-SSL-Socket-Class" => $Net::HTTPS::SSL_SOCKET_CLASS); } # upgrade plain socket to SSL, used for CONNECT tunnel when proxying https # will only work if the underlying socket class of Net::HTTPS is # IO::Socket::SSL, but code will only be called in this case if ( $Net::HTTPS::SSL_SOCKET_CLASS->can('start_SSL')) { *_upgrade_sock = sub { my ($self,$sock,$url) = @_; # SNI should be passed there only if it is not an IP address. # Details: https://github.com/libwww-perl/libwww-perl/issues/449#issuecomment-1896175509 my $host = $url->host() =~ m/:|^[\d.]+$/s ? undef : $url->host(); my $usebio = {}; if (UNIVERSAL::can($sock,'is_SSL') && $sock->is_SSL) { $usebio = eval { $Net::HTTPS::SSL_SOCKET_CLASS->can_nested_ssl } or die "no support for nested TLS in this IO::Socket::SSL version"; } $sock = LWP::Protocol::https::Socket->start_SSL( my $osock = $sock, SSL_verifycn_name => $url->host, SSL_hostname => $host, %$usebio, $self->_extra_sock_opts, ); if (!$sock) { $@ = LWP::Protocol::https::Socket->errstr; return; } if ($usebio and my @fields = grep { /^http_/ } keys %{*$osock}) { # propagate any http_ fields from osock to sock @{*$sock}{@fields} = @{*$osock}{@fields} } return $sock; } } #----------------------------------------------------------- package LWP::Protocol::https::Socket; use parent -norequire, qw(Net::HTTPS LWP::Protocol::http::SocketMethods); 1; __END__ =head1 NAME LWP::Protocol::https - Provide https support for LWP::UserAgent =head1 SYNOPSIS use LWP::UserAgent; $ua = LWP::UserAgent->new(ssl_opts => { verify_hostname => 1 }); $res = $ua->get("https://www.example.com"); # specify a CA path $ua = LWP::UserAgent->new( ssl_opts => { SSL_ca_path => '/etc/ssl/certs', verify_hostname => 1, } ); =head1 DESCRIPTION The LWP::Protocol::https module provides support for using https schemed URLs with LWP. This module is a plug-in to the LWP protocol handling, so you don't use it directly. Once the module is installed LWP is able to access sites using HTTP over SSL/TLS. If hostname verification is requested by LWP::UserAgent's C, and neither C nor C is set, then C is implied to be the one provided by L. If the Mozilla::CA module isn't available SSL requests will fail. Either install this module, set up an alternative C or disable hostname verification. This module used to be bundled with the libwww-perl, but it was unbundled in v6.02 in order to be able to declare its dependencies properly for the CPAN tool-chain. Applications that need https support can just declare their dependency on LWP::Protocol::https and will no longer need to know what underlying modules to install. =head1 SEE ALSO L, L, L =head1 COPYRIGHT & LICENSE Copyright (c) 1997-2011 Gisle Aas. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut work/1776643672.97974/LWP-Protocol-https-6.15/cpanfile000064400000002324152424177470015042 0ustar00on 'configure' => sub { requires "ExtUtils::MakeMaker" => "0"; requires "perl" => "5.008001"; }; on 'runtime' => sub { requires "base" => "0"; requires "IO::Socket::SSL" => "1.970"; requires "LWP::Protocol::http" => "0"; requires "LWP::UserAgent" => "6.06"; requires "Net::HTTPS" => "6"; requires "perl" => "5.008001"; requires "strict" => "0"; }; on 'test' => sub { requires "File::Temp" => "0"; requires "IO::Select" => "0"; requires "IO::Socket::INET" => "0"; requires "IO::Socket::SSL" => "1.54"; requires "IO::Socket::SSL::Utils" => "0"; requires "LWP::UserAgent" => "6.06"; requires "perl" => "5.008001"; requires "Socket" => "0"; requires "Test::More" => "0.96"; requires "Test::Needs" => "0.002010"; requires "Test::RequiresInternet" => "0"; requires "warnings" => "0"; }; on 'develop' => sub { requires 'Capture::Tiny' => '0.48'; requires 'Test::CheckManifest' => '1.29'; requires 'Test::CleanNamespaces'; requires "Test::CPAN::Changes" => "0.19"; requires 'Test::CPAN::Meta'; requires 'Test::Kwalitee'; requires 'Test::Kwalitee' => '1.22'; requires 'Test::Pod::Spelling::CommonMistakes' => '1.000'; }; work/1776643672.97974/LWP-Protocol-https-6.15/MANIFEST000064400000001131152424177470014462 0ustar00# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.033. CONTRIBUTING.md Changes Install LICENSE MANIFEST META.json META.yml Makefile.PL cpanfile dist.ini lib/LWP/Protocol/https.pm perlcriticrc perltidyrc t/00-report-prereqs.dd t/00-report-prereqs.t t/diag.t t/example.t t/https_proxy.t tidyall.ini xt/author/00-compile.t xt/author/clean-namespaces.t xt/author/distmeta.t xt/author/eol.t xt/author/kwalitee.t xt/author/minimum-version.t xt/author/mojibake.t xt/author/pod-coverage.t xt/author/pod-spell.t xt/author/pod-syntax.t xt/author/portability.t xt/author/test-version.t work/1776643672.97974/LWP-Protocol-https-6.15/pm_to_blib000064400000000000152424177470015354 0ustar00work/1776643672.97974/LWP-Protocol-https-6.15/MYMETA.yml000064400000040371152424177470015061 0ustar00--- abstract: 'Provide https support for LWP::UserAgent' author: - 'Gisle Aas ' build_requires: ExtUtils::MakeMaker: '0' File::Spec: '0' File::Temp: '0' IO::Select: '0' IO::Socket::INET: '0' IO::Socket::SSL: '1.970' IO::Socket::SSL::Utils: '0' LWP::UserAgent: '6.06' Socket: '0' Test::More: '0.96' Test::Needs: '0.002010' Test::RequiresInternet: '0' warnings: '0' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 generated_by: 'Dist::Zilla version 6.033, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: LWP-Protocol-https no_index: directory: - t - xt provides: LWP::Protocol::https: file: lib/LWP/Protocol/https.pm version: '6.15' LWP::Protocol::https::Socket: file: lib/LWP/Protocol/https.pm version: '6.15' requires: IO::Socket::SSL: '1.970' LWP::Protocol::http: '0' LWP::UserAgent: '6.06' Net::HTTPS: '6' base: '0' perl: '5.008001' strict: '0' resources: IRC: irc://irc.perl.org/#lwp MailingList: mailto:libwww@perl.org bugtracker: https://github.com/libwww-perl/LWP-Protocol-https/issues homepage: https://github.com/libwww-perl/LWP-Protocol-https repository: https://github.com/libwww-perl/LWP-Protocol-https.git version: '6.15' x_Dist_Zilla: perl: version: '5.042000' plugins: - class: Dist::Zilla::Plugin::Git::GatherDir config: Dist::Zilla::Plugin::GatherDir: exclude_filename: - LICENSE - META.json - Makefile.PL - README.md exclude_match: [] include_dotfiles: 0 prefix: '' prune_directory: [] root: . Dist::Zilla::Plugin::Git::GatherDir: include_untracked: 0 name: Git::GatherDir version: '2.052' - class: Dist::Zilla::Plugin::PruneCruft name: PruneCruft version: '6.033' - class: Dist::Zilla::Plugin::MetaConfig name: MetaConfig version: '6.033' - class: Dist::Zilla::Plugin::MetaProvides::Package config: Dist::Zilla::Plugin::MetaProvides::Package: finder_objects: - class: Dist::Zilla::Plugin::FinderCode name: MetaProvides::Package/AUTOVIV/:InstallModulesPM version: '6.033' include_underscores: 0 Dist::Zilla::Role::MetaProvider::Provider: $Dist::Zilla::Role::MetaProvider::Provider::VERSION: '2.002004' inherit_missing: 1 inherit_version: 1 meta_noindex: 1 Dist::Zilla::Role::ModuleMetadata: Module::Metadata: '1.000038' version: '0.006' name: MetaProvides::Package version: '2.004003' - class: Dist::Zilla::Plugin::MetaNoIndex name: MetaNoIndex version: '6.033' - class: Dist::Zilla::Plugin::MetaYAML name: MetaYAML version: '6.033' - class: Dist::Zilla::Plugin::MetaJSON name: MetaJSON version: '6.033' - class: Dist::Zilla::Plugin::MetaResources name: MetaResources version: '6.033' - class: Dist::Zilla::Plugin::Git::Check config: Dist::Zilla::Plugin::Git::Check: untracked_files: die Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - LICENSE - META.json - Makefile.PL - README.md allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: git_version: 2.43.0 repo_root: . name: Git::Check version: '2.052' - class: Dist::Zilla::Plugin::Git::Contributors config: Dist::Zilla::Plugin::Git::Contributors: git_version: 2.43.0 include_authors: 0 include_releaser: 1 order_by: name paths: [] name: Git::Contributors version: '0.038' - class: Dist::Zilla::Plugin::GithubMeta name: GithubMeta version: '0.58' - class: Dist::Zilla::Plugin::Manifest name: Manifest version: '6.033' - class: Dist::Zilla::Plugin::License name: License version: '6.033' - class: Dist::Zilla::Plugin::ReadmeAnyFromPod config: Dist::Zilla::Role::FileWatcher: version: '0.006' name: Markdown_Readme version: '0.163250' - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: phase: develop type: recommends name: '@Git::VersionManager/pluginbundle version' version: '6.033' - class: Dist::Zilla::Plugin::RewriteVersion::Transitional config: Dist::Zilla::Plugin::RewriteVersion: add_tarball_name: 0 finders: - ':ExecFiles' - ':InstallModules' global: 0 skip_version_provider: 0 Dist::Zilla::Plugin::RewriteVersion::Transitional: {} name: '@Git::VersionManager/RewriteVersion::Transitional' version: '0.009' - class: Dist::Zilla::Plugin::MetaProvides::Update name: '@Git::VersionManager/MetaProvides::Update' version: '0.007' - class: Dist::Zilla::Plugin::CopyFilesFromRelease config: Dist::Zilla::Plugin::CopyFilesFromRelease: filename: - Changes match: [] name: '@Git::VersionManager/CopyFilesFromRelease' version: '0.007' - class: Dist::Zilla::Plugin::Git::Commit config: Dist::Zilla::Plugin::Git::Commit: add_files_in: [] commit_msg: v%V%n%n%c signoff: 0 Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - Changes - LICENSE - META.json - Makefile.PL allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: git_version: 2.43.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Git::VersionManager/release snapshot' version: '2.052' - class: Dist::Zilla::Plugin::Git::Tag config: Dist::Zilla::Plugin::Git::Tag: branch: ~ changelog: Changes signed: 0 tag: v6.15 tag_format: v%V tag_message: v%V Dist::Zilla::Role::Git::Repo: git_version: 2.43.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Git::VersionManager/Git::Tag' version: '2.052' - class: Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional config: Dist::Zilla::Plugin::BumpVersionAfterRelease: finders: - ':ExecFiles' - ':InstallModules' global: 0 munge_makefile_pl: 1 Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional: {} name: '@Git::VersionManager/BumpVersionAfterRelease::Transitional' version: '0.009' - class: Dist::Zilla::Plugin::NextRelease name: '@Git::VersionManager/NextRelease' version: '6.033' - class: Dist::Zilla::Plugin::Git::Commit config: Dist::Zilla::Plugin::Git::Commit: add_files_in: [] commit_msg: 'increment $VERSION after %v release' signoff: 0 Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - Build.PL - Changes - Makefile.PL allow_dirty_match: - (?^:^lib/.*\.pm$) changelog: Changes Dist::Zilla::Role::Git::Repo: git_version: 2.43.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Git::VersionManager/post-release commit' version: '2.052' - class: Dist::Zilla::Plugin::Prereqs::FromCPANfile name: Prereqs::FromCPANfile version: '0.08' - class: Dist::Zilla::Plugin::MakeMaker::Awesome config: Dist::Zilla::Plugin::MakeMaker: make_path: make version: '6.033' Dist::Zilla::Role::TestRunner: default_jobs: '8' version: '6.033' name: MakeMaker::Awesome version: '0.49' - class: Dist::Zilla::Plugin::CheckChangeLog name: CheckChangeLog version: '0.05' - class: Dist::Zilla::Plugin::CheckChangesHasContent name: CheckChangesHasContent version: '0.011' - class: Dist::Zilla::Plugin::Test::Kwalitee config: Dist::Zilla::Plugin::Test::Kwalitee: filename: xt/author/kwalitee.t skiptest: - has_readme name: Test::Kwalitee version: '2.12' - class: Dist::Zilla::Plugin::MojibakeTests name: MojibakeTests version: '0.8' - class: Dist::Zilla::Plugin::Test::Version name: Test::Version version: '1.09' - class: Dist::Zilla::Plugin::Test::ReportPrereqs name: Test::ReportPrereqs version: '0.029' - class: Dist::Zilla::Plugin::Test::Compile config: Dist::Zilla::Plugin::Test::Compile: bail_out_on_fail: '1' fail_on_warning: author fake_home: 0 filename: xt/author/00-compile.t module_finder: - ':InstallModules' needs_display: 0 phase: develop script_finder: - ':PerlExecFiles' skips: [] switch: [] name: Test::Compile version: '2.058' - class: Dist::Zilla::Plugin::Test::Portability config: Dist::Zilla::Plugin::Test::Portability: options: '' name: Test::Portability version: '2.001003' - class: Dist::Zilla::Plugin::Test::CleanNamespaces config: Dist::Zilla::Plugin::Test::CleanNamespaces: filename: xt/author/clean-namespaces.t skips: [] name: Test::CleanNamespaces version: '0.006' - class: Dist::Zilla::Plugin::Test::EOL config: Dist::Zilla::Plugin::Test::EOL: filename: xt/author/eol.t finder: - ':ExecFiles' - ':InstallModules' - ':TestFiles' trailing_whitespace: 1 name: Test::EOL version: '0.19' - class: Dist::Zilla::Plugin::MetaTests name: MetaTests version: '6.033' - class: Dist::Zilla::Plugin::Test::MinimumVersion config: Dist::Zilla::Plugin::Test::MinimumVersion: max_target_perl: ~ name: Test::MinimumVersion version: '2.000011' - class: Dist::Zilla::Plugin::PodSyntaxTests name: PodSyntaxTests version: '6.033' - class: Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable name: Test::Pod::Coverage::Configurable version: '0.07' - class: Dist::Zilla::Plugin::Test::PodSpelling config: Dist::Zilla::Plugin::Test::PodSpelling: directories: - bin - lib spell_cmd: 'aspell list' stopwords: [] wordlist: Pod::Wordlist name: Test::PodSpelling version: '2.007006' - class: Dist::Zilla::Plugin::RunExtraTests config: Dist::Zilla::Role::TestRunner: default_jobs: '8' name: RunExtraTests version: '0.029' - class: Dist::Zilla::Plugin::CheckStrictVersion name: CheckStrictVersion version: '0.001' - class: Dist::Zilla::Plugin::CopyFilesFromBuild name: CopyFilesFromBuild version: '0.170880' - class: Dist::Zilla::Plugin::TestRelease name: TestRelease version: '6.033' - class: Dist::Zilla::Plugin::ConfirmRelease name: ConfirmRelease version: '6.033' - class: Dist::Zilla::Plugin::UploadToCPAN name: UploadToCPAN version: '6.033' - class: Dist::Zilla::Plugin::Git::Push config: Dist::Zilla::Plugin::Git::Push: push_to: - origin remotes_must_exist: 1 Dist::Zilla::Role::Git::Repo: git_version: 2.43.0 repo_root: . name: Git::Push version: '2.052' - class: Dist::Zilla::Plugin::FinderCode name: ':InstallModules' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':IncModules' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':TestFiles' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':ExtraTestFiles' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':ExecFiles' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':PerlExecFiles' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':ShareFiles' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':MainModule' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':AllFiles' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: ':NoFiles' version: '6.033' - class: Dist::Zilla::Plugin::FinderCode name: MetaProvides::Package/AUTOVIV/:InstallModulesPM version: '6.033' zilla: class: Dist::Zilla::Dist::Builder config: is_trial: 0 version: '6.033' x_contributors: - 'Adam Kennedy ' - 'Adam Sjogren ' - 'Alexandr Ciornii ' - 'Alexey Tourbin ' - 'Alex Kapranoff ' - 'amire80 ' - 'Andreas J. Koenig ' - 'Axel Burri ' - 'Bill Mann ' - 'Bron Gondwana ' - 'Chase Whitener ' - 'Christopher J. Madsen ' - 'cpansprout ' - 'Dan Book ' - 'Daniel Hedlund ' - 'David E. Wheeler ' - 'David Golden ' - 'DAVIDRW ' - 'dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>' - 'Dmitriy Shamatrin ' - 'drieux ' - 'Father Chrysostomos ' - 'FWILES ' - 'Gavin Peters ' - 'Gianni Ceccarelli ' - 'Gisle Aas ' - 'Graeme Thompson ' - 'Hans-H. Froehlich ' - 'Ian Kilgore ' - 'Jacob J ' - 'Jakub Wilk ' - 'jefflee ' - 'JJ Merelo ' - 'john9art ' - 'Jon Jensen ' - 'Karen Etheridge ' - 'Leo Lapworth ' - 'Marin Tsanov ' - 'Mark Stosberg ' - 'Michael G. Schwern ' - 'Mike Schilli ' - 'Mohammad S Anwar ' - 'murphy ' - 'Nicolas R ' - 'Olaf Alders ' - 'Ondrej Hanak ' - 'openstrike ' - 'Peter Rabbitson ' - 'phrstbrn ' - 'Randy Stauner ' - 'Robert Stone ' - 'Rolf Grossmann ' - 'ruff ' - 'sasao ' - 'Sean M. Burke ' - 'Shoichi Kaji ' - 'Slaven Rezic ' - 'Spiros Denaxas ' - 'Steffen Ullrich ' - 'Steffen Ullrich ' - 'Steve Hay ' - 'Tim Couzins ' - 'Todd Lipcon ' - 'Tom Hukins ' - 'Tony Finch ' - 'Toru Yamaguchi ' - 'uid39246 ' - 'Ville Skyttä ' - 'Yuri Karaban ' - 'Yury Zavarin ' - 'Zefram ' x_generated_by_perl: v5.42.0 x_serialization_backend: 'CPAN::Meta::YAML version 0.020' x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later' work/1776643672.97974/LWP-Protocol-https-6.15/t/00-report-prereqs.dd000064400000007176152424177470017333 0ustar00do { my $x = { 'configure' => { 'requires' => { 'ExtUtils::MakeMaker' => '0', 'perl' => '5.008001' }, 'suggests' => { 'JSON::PP' => '2.27300' } }, 'develop' => { 'recommends' => { 'Dist::Zilla::PluginBundle::Git::VersionManager' => '0.007' }, 'requires' => { 'Capture::Tiny' => '0.48', 'File::Spec' => '0', 'IO::Handle' => '0', 'IPC::Open3' => '0', 'Pod::Coverage::TrustPod' => '0', 'Test::CPAN::Changes' => '0.19', 'Test::CPAN::Meta' => '0', 'Test::CheckManifest' => '1.29', 'Test::CleanNamespaces' => '0.15', 'Test::EOL' => '0', 'Test::Kwalitee' => '1.22', 'Test::MinimumVersion' => '0', 'Test::Mojibake' => '0', 'Test::More' => '0.94', 'Test::Pod' => '1.41', 'Test::Pod::Coverage' => '1.08', 'Test::Pod::Spelling::CommonMistakes' => '1.000', 'Test::Portability::Files' => '0', 'Test::Spelling' => '0.17', 'Test::Version' => '1' } }, 'runtime' => { 'requires' => { 'IO::Socket::SSL' => '1.970', 'LWP::Protocol::http' => '0', 'LWP::UserAgent' => '6.06', 'Net::HTTPS' => '6', 'base' => '0', 'perl' => '5.008001', 'strict' => '0' } }, 'test' => { 'recommends' => { 'CPAN::Meta' => '2.120900' }, 'requires' => { 'ExtUtils::MakeMaker' => '0', 'File::Spec' => '0', 'File::Temp' => '0', 'IO::Select' => '0', 'IO::Socket::INET' => '0', 'IO::Socket::SSL' => '1.970', 'IO::Socket::SSL::Utils' => '0', 'LWP::UserAgent' => '6.06', 'Socket' => '0', 'Test::More' => '0.96', 'Test::Needs' => '0.002010', 'Test::RequiresInternet' => '0', 'perl' => '5.008001', 'warnings' => '0' } } }; $x; }work/1776643672.97974/LWP-Protocol-https-6.15/t/example.t000064400000003033152424177470015417 0ustar00#!perl -w use strict; use Test::More; use Test::RequiresInternet 'httpbin.org' => 443; use LWP::UserAgent (); my $ua = LWP::UserAgent->new( ssl_opts => { verify_hostname => 0 } ); plan tests => 2; my $url = 'https://httpbin.org'; subtest "Request GET $url" => sub { plan tests => 6; my $res = $ua->simple_request(HTTP::Request->new(GET => $url)); ok($res->is_success, "success status"); my $h; $h = 'X-Died'; my $x_died = $res->header($h); is($x_died, undef, "no $h header"); $h = 'Client-SSL-Socket-Class'; my $socket_class = $res->header($h) || ''; ok($socket_class =~ /\S/, "have header $h"); SKIP: { $h = 'Client-SSL-Version'; my $ssl_version = $res->header($h) || ''; my $h_test = $ssl_version =~ /^(SSL|TLS)v\d/i; my $want_class = 'IO::Socket::SSL'; $h_test or $socket_class eq $want_class or skip "header $h only guaranteed when using $want_class", 1; ok($h_test, "have header $h"); } $h = 'Client-SSL-Cipher'; my $ssl_cipher = $res->header($h) || ''; ok($ssl_cipher =~ /\S/, "have header $h"); like($res->content, qr/\Qhttpbin.org/, "found expected document content"); }; subtest "Check for warnings from GET $url (RT #81948)" => sub { plan tests => 2; my $warn = ''; $SIG{__WARN__} = sub { $warn = shift }; my $res = $ua->simple_request(HTTP::Request->new(GET => $url)); ok($res->is_success, "success status"); is($warn, '', "no warning seen"); $res->dump(prefix => "# "); }; work/1776643672.97974/LWP-Protocol-https-6.15/t/00-report-prereqs.t000064400000013616152424177470017203 0ustar00#!perl use strict; use warnings; # This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.029 use Test::More tests => 1; use ExtUtils::MakeMaker; use File::Spec; # from $version::LAX my $lax_version_re = qr/(?: undef | (?: (?:[0-9]+) (?: \. | (?:\.[0-9]+) (?:_[0-9]+)? )? | (?:\.[0-9]+) (?:_[0-9]+)? ) | (?: v (?:[0-9]+) (?: (?:\.[0-9]+)+ (?:_[0-9]+)? )? | (?:[0-9]+)? (?:\.[0-9]+){2,} (?:_[0-9]+)? ) )/x; # hide optional CPAN::Meta modules from prereq scanner # and check if they are available my $cpan_meta = "CPAN::Meta"; my $cpan_meta_pre = "CPAN::Meta::Prereqs"; my $HAS_CPAN_META = eval "require $cpan_meta; $cpan_meta->VERSION('2.120900')" && eval "require $cpan_meta_pre"; ## no critic # Verify requirements? my $DO_VERIFY_PREREQS = 1; sub _max { my $max = shift; $max = ( $_ > $max ) ? $_ : $max for @_; return $max; } sub _merge_prereqs { my ($collector, $prereqs) = @_; # CPAN::Meta::Prereqs object if (ref $collector eq $cpan_meta_pre) { return $collector->with_merged_prereqs( CPAN::Meta::Prereqs->new( $prereqs ) ); } # Raw hashrefs for my $phase ( keys %$prereqs ) { for my $type ( keys %{ $prereqs->{$phase} } ) { for my $module ( keys %{ $prereqs->{$phase}{$type} } ) { $collector->{$phase}{$type}{$module} = $prereqs->{$phase}{$type}{$module}; } } } return $collector; } my @include = qw( Net::SSLeay ); my @exclude = qw( ); # Add static prereqs to the included modules list my $static_prereqs = do './t/00-report-prereqs.dd'; # Merge all prereqs (either with ::Prereqs or a hashref) my $full_prereqs = _merge_prereqs( ( $HAS_CPAN_META ? $cpan_meta_pre->new : {} ), $static_prereqs ); # Add dynamic prereqs to the included modules list (if we can) my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; my $cpan_meta_error; if ( $source && $HAS_CPAN_META && (my $meta = eval { CPAN::Meta->load_file($source) } ) ) { $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); } else { $cpan_meta_error = $@; # capture error from CPAN::Meta->load_file($source) $source = 'static metadata'; } my @full_reports; my @dep_errors; my $req_hash = $HAS_CPAN_META ? $full_prereqs->as_string_hash : $full_prereqs; # Add static includes into a fake section for my $mod (@include) { $req_hash->{other}{modules}{$mod} = 0; } for my $phase ( qw(configure build test runtime develop other) ) { next unless $req_hash->{$phase}; next if ($phase eq 'develop' and not $ENV{AUTHOR_TESTING}); for my $type ( qw(requires recommends suggests conflicts modules) ) { next unless $req_hash->{$phase}{$type}; my $title = ucfirst($phase).' '.ucfirst($type); my @reports = [qw/Module Want Have/]; for my $mod ( sort keys %{ $req_hash->{$phase}{$type} } ) { next if grep { $_ eq $mod } @exclude; my $want = $req_hash->{$phase}{$type}{$mod}; $want = "undef" unless defined $want; $want = "any" if !$want && $want == 0; if ($mod eq 'perl') { push @reports, ['perl', $want, $]]; next; } my $req_string = $want eq 'any' ? 'any version required' : "version '$want' required"; my $file = $mod; $file =~ s{::}{/}g; $file .= ".pm"; my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC; if ($prefix) { my $have = MM->parse_version( File::Spec->catfile($prefix, $file) ); $have = "undef" unless defined $have; push @reports, [$mod, $want, $have]; if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META && $type eq 'requires' ) { if ( $have !~ /\A$lax_version_re\z/ ) { push @dep_errors, "$mod version '$have' cannot be parsed ($req_string)"; } elsif ( ! $full_prereqs->requirements_for( $phase, $type )->accepts_module( $mod => $have ) ) { push @dep_errors, "$mod version '$have' is not in required range '$want'"; } } } else { push @reports, [$mod, $want, "missing"]; if ( $DO_VERIFY_PREREQS && $type eq 'requires' ) { push @dep_errors, "$mod is not installed ($req_string)"; } } } if ( @reports ) { push @full_reports, "=== $title ===\n\n"; my $ml = _max( map { length $_->[0] } @reports ); my $wl = _max( map { length $_->[1] } @reports ); my $hl = _max( map { length $_->[2] } @reports ); if ($type eq 'modules') { splice @reports, 1, 0, ["-" x $ml, "", "-" x $hl]; push @full_reports, map { sprintf(" %*s %*s\n", -$ml, $_->[0], $hl, $_->[2]) } @reports; } else { splice @reports, 1, 0, ["-" x $ml, "-" x $wl, "-" x $hl]; push @full_reports, map { sprintf(" %*s %*s %*s\n", -$ml, $_->[0], $wl, $_->[1], $hl, $_->[2]) } @reports; } push @full_reports, "\n"; } } } if ( @full_reports ) { diag "\nVersions for all modules listed in $source (including optional ones):\n\n", @full_reports; } if ( $cpan_meta_error || @dep_errors ) { diag "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n"; } if ( $cpan_meta_error ) { my ($orig_source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; diag "\nCPAN::Meta->load_file('$orig_source') failed with: $cpan_meta_error\n"; } if ( @dep_errors ) { diag join("\n", "\nThe following REQUIRED prerequisites were not satisfied:\n", @dep_errors, "\n" ); } pass('Reported prereqs'); # vim: ts=4 sts=4 sw=4 et: work/1776643672.97974/LWP-Protocol-https-6.15/t/diag.t000064400000002711152424177470014672 0ustar00#!perl use strict; use warnings; use IO::Select (); use IO::Socket::INET (); use IO::Socket::SSL (); use IO::Socket::SSL::Utils (); use Socket (); use Test::More import => [qw( diag done_testing pass subtest )]; use Test::Needs; use Try::Tiny qw( try ); subtest 'openssl' => sub { test_needs 'Capture::Tiny'; test_needs 'File::Which'; my $openssl = File::Which::which('openssl'); diag "path to openssl: $openssl"; ## no critic (InputOutput::RequireCheckedSyscalls) my ( $stdout, $stderr ) = Capture::Tiny::capture( sub { system( $openssl, 'version' ) } ); diag "stdout: $stdout" if $stdout; diag "stderr: $stderr" if $stderr; pass('openssl version'); }; subtest 'net_ssleay' => sub { test_needs 'Net::SSLeay'; try { diag( sprintf 'Net::SSLeay::OPENSSL_VERSION_NUMBER() 0x%08x', Net::SSLeay::OPENSSL_VERSION_NUMBER() ); }; try { diag( sprintf 'Net::SSLeay::LIBRESSL_VERSION_NUMBER() 0x%08x', Net::SSLeay::LIBRESSL_VERSION_NUMBER() ); }; pass('Net::SSLeay'); }; subtest 'modules' => sub { diag "IO::Select $IO::Select::VERSION"; diag "IO::Socket::INET $IO::Socket::INET::VERSION"; diag "IO::Socket::SSL $IO::Socket::SSL::VERSION"; diag "IO::Socket::SSL::Utils $IO::Socket::SSL::Utils::VERSION"; diag "Socket $Socket::VERSION"; pass('modules'); }; done_testing(); work/1776643672.97974/LWP-Protocol-https-6.15/t/https_proxy.t000064400000024001152424177470016365 0ustar00#!/usr/bin/perl # to run test with Net::SSL as backend set environment # PERL_NET_HTTPS_SSL_SOCKET_CLASS=Net::SSL use strict; use warnings; use Test::More; use File::Temp 'tempfile'; use IO::Socket::INET; use IO::Select; use Socket 'MSG_PEEK'; use LWP::UserAgent; use LWP::Protocol::https; plan skip_all => "fork not implemented on this platform" if grep { $^O =~m{$_} } qw( MacOS VOS vmesa riscos amigaos ); eval { require IO::Socket::SSL } and $IO::Socket::SSL::VERSION >= 1.953 and eval { require IO::Socket::SSL::Utils } or plan skip_all => "no recent version of IO::Socket::SSL::Utils"; IO::Socket::SSL::Utils->import; # create CA ------------------------------------------------------------- my ($cacert,$cakey) = CERT_create( CA => 1 ); my $cafile = do { my ($fh,$fname) = tempfile( CLEANUP => 1 ); print $fh PEM_cert2string($cacert); $fname }; # create two web servers ------------------------------------------------ my (@server,@saddr); for my $i (0,1) { my $server = IO::Socket::INET->new( LocalAddr => '127.0.0.1', LocalPort => 0, # let system pick port Listen => 10 ) or die "failed to create INET listener"; my $saddr = $server->sockhost.':'.$server->sockport; $server[$i] = $server; $saddr[$i] = $saddr; } my @childs; END { kill 9,@childs if @childs }; defined( my $pid = fork()) or die "fork failed: $!"; # child process runs _server and exits if ( ! $pid ) { @childs = (); exit( _server()); } # parent continues with closed server sockets push @childs,$pid; @server = (); # check which SSL implementation Net::HTTPS uses # Net::SSL behaves different than the default IO::Socket::SSL my $netssl = $Net::HTTPS::SSL_SOCKET_CLASS eq 'Net::SSL'; # do some tests ---------------------------------------------------------- my %ua; $ua{noproxy} = LWP::UserAgent->new( keep_alive => 10, # size of connection cache # server does not know the expected name and returns generic certificate ssl_opts => { verify_hostname => 0, SSL_ca_file => $cafile, } ); $ua{proxy} = LWP::UserAgent->new( keep_alive => 10, # size of connection cache ssl_opts => { # Net::SSL cannot verify hostnames :( verify_hostname => $netssl ? 0: 1, SSL_ca_file => $cafile } ); $ua{proxy_nokeepalive} = LWP::UserAgent->new( keep_alive => 0, ssl_opts => { # Net::SSL cannot verify hostnames :( verify_hostname => $netssl ? 0: 1, SSL_ca_file => $cafile } ); # both lower- and upper-case versions are accepted by `env_proxy`, and # the user may have any of them set: override them all $ENV{HTTP_PROXY} = $ENV{HTTPS_PROXY} = $ENV{http_proxy} = $ENV{https_proxy} = "http://foo:bar\@$saddr[0]"; $ua{proxy}->env_proxy; $ua{proxy_nokeepalive}->env_proxy; if ($netssl) { # Net::SSL cannot get user/pass from proxy url $ENV{HTTPS_PROXY_USERNAME} = 'foo'; $ENV{HTTPS_PROXY_PASSWORD} = 'bar'; } my @tests = ( # the expected ids are connid.reqid[tunnel_auth][req_auth]@sslhost # because we run different sets of test depending on the SSL class # used by Net::HTTPS we replace connid with a letter and later # match it to a number # keep-alive for non-proxy http # requests to same target use same connection, even if intermixed [ 'noproxy', "http://$saddr[0]/foo",'A.1@nossl' ], [ 'noproxy', "http://$saddr[0]/bar",'A.2@nossl' ], # reuse conn#1 [ 'noproxy', "http://$saddr[1]/foo",'B.1@nossl' ], [ 'noproxy', "http://$saddr[1]/bar",'B.2@nossl' ], # reuse conn#2 [ 'noproxy', "http://$saddr[0]/tor",'A.3@nossl' ], # reuse conn#1 again [ 'noproxy', "http://$saddr[1]/tor",'B.3@nossl' ], # reuse conn#2 again # keep-alive for proxy http # use the same proxy connection for all even if the target host differs [ 'proxy', "http://foo/foo",'C.1.auth@nossl' ], [ 'proxy', "http://foo/bar",'C.2.auth@nossl' ], [ 'proxy', "http://bar/foo",'C.3.auth@nossl' ], [ 'proxy', "http://bar/bar",'C.4.auth@nossl' ], [ 'proxy', "http://foo/tor",'C.5.auth@nossl' ], [ 'proxy', "http://bar/tor",'C.6.auth@nossl' ], # keep-alive for non-proxy https # requests to same target use same connection, even if intermixed [ 'noproxy', "https://$saddr[0]/foo",'D.1@direct.ssl.access' ], [ 'noproxy', "https://$saddr[0]/bar",'D.2@direct.ssl.access' ], [ 'noproxy', "https://$saddr[1]/foo",'E.1@direct.ssl.access' ], [ 'noproxy', "https://$saddr[1]/bar",'E.2@direct.ssl.access' ], [ 'noproxy', "https://$saddr[0]/tor",'D.3@direct.ssl.access' ], [ 'noproxy', "https://$saddr[1]/tor",'E.3@direct.ssl.access' ], # keep-alive for proxy https ! $netssl ? ( # note that we reuse proxy conn#C in first request. Although the last id # from this conn was C.6 the new one is C.8, because request C.7 was the # socket upgrade via CONNECT request [ 'proxy', "https://foo/foo",'C.8.Tauth@foo' ], [ 'proxy', "https://foo/bar",'C.9.Tauth@foo' ], # if the target of the tunnel is different we need another connection # note that it starts with F.2, because F.1 is the CONNECT request which # established the tunnel [ 'proxy', "https://bar/foo",'F.2.Tauth@bar' ], [ 'proxy', "https://bar/bar",'F.3.Tauth@bar' ], [ 'proxy', "https://foo/tor",'C.10.Tauth@foo' ], [ 'proxy', "https://bar/tor",'F.4.Tauth@bar' ], ):( # Net::SSL will cannot reuse socket for CONNECT, but once inside tunnel # keep-alive is possible [ 'proxy', "https://foo/foo",'G.2.Tauth@foo' ], [ 'proxy', "https://foo/bar",'G.3.Tauth@foo' ], [ 'proxy', "https://bar/foo",'F.2.Tauth@bar' ], [ 'proxy', "https://bar/bar",'F.3.Tauth@bar' ], [ 'proxy', "https://foo/tor",'G.4.Tauth@foo' ], [ 'proxy', "https://bar/tor",'F.4.Tauth@bar' ], ), # non-keep alive for proxy https [ 'proxy_nokeepalive', "https://foo/foo",'H.2.Tauth@foo' ], [ 'proxy_nokeepalive', "https://foo/bar",'I.2.Tauth@foo' ], [ 'proxy_nokeepalive', "https://bar/foo",'J.2.Tauth@bar' ], [ 'proxy_nokeepalive', "https://bar/bar",'K.2.Tauth@bar' ], ); plan tests => 2*@tests; my (%conn2id,%id2conn); for my $test (@tests) { my ($uatype,$url,$expect_id) = @$test; my $ua = $ua{$uatype} or die "no such ua: $uatype"; # Net::SSL uses only the environment to decide about proxy, so we need the # proxy/non-proxy environment for each request if ( $netssl && $url =~m{^https://} ) { $ENV{https_proxy} = $uatype =~m{^proxy} ? "http://$saddr[0]":"" } my $response = $ua->get($url) or die "no response"; if ( $response->is_success and ( my $body = $response->content()) =~m{^ID: *(\d+)\.(\S+)}m ) { my $id = [ $1,$2 ]; my $xid = [ $expect_id =~m{(\w+)\.(\S+)} ]; if ( my $x = $id2conn{$id->[0]} ) { $id->[0] = $x; } elsif ( ! $conn2id{$xid->[0]} ) { $conn2id{ $xid->[0] } = $id->[0]; $id2conn{ $id->[0] } = $xid->[0]; $id->[0] = $xid->[0]; } is("$id->[0].$id->[1]",$expect_id,"$uatype $url -> $expect_id") or diag($response->as_string); # inside proxy tunnel and for non-proxy there should be only absolute # URI in request w/o scheme my $expect_rqurl = $url; $expect_rqurl =~s{^\w+://[^/]+}{} if $uatype eq 'noproxy' or $url =~m{^https://}; my ($rqurl) = $body =~m{^GET (\S+) HTTP/}m; is($rqurl,$expect_rqurl,"URL in request -> $expect_rqurl"); } else { die "unexpected response: ".$response->as_string } } # ------------------------------------------------------------------------ # simple web server with keep alive and SSL, which can also simulate proxy # ------------------------------------------------------------------------ sub _server { my $connid = 0; my %certs; # generated certificates ACCEPT: my ($server) = IO::Select->new(@server)->can_read(); my $cl = $server->accept or goto ACCEPT; # peek into socket to determine if this is direct SSL or not # minimal request is "GET / HTTP/1.1\n\n" my $buf = ''; while (length($buf)<15) { my $lbuf; if ( ! IO::Select->new($cl)->can_read(30) or ! defined recv($cl,$lbuf,20,MSG_PEEK)) { warn "not enough data for request ($buf): $!"; goto ACCEPT; } $buf .= $lbuf; } my $ssl_host = ''; if ( $buf !~m{\A[A-Z]{3,} } ) { # does not look like HTTP, assume direct SSL $ssl_host = "direct.ssl.access"; } $connid++; defined( my $pid = fork()) or die "failed to fork: $!"; if ( $pid ) { push @childs,$pid; goto ACCEPT; # wait for next connection } # child handles requests @server = (); my $reqid = 0; my $tunnel_auth = ''; SSL_UPGRADE: if ( $ssl_host ) { my ($cert,$key) = @{ $certs{$ssl_host} ||= do { note("creating cert for $ssl_host"); my ($c,$k) = CERT_create( subject => { commonName => $ssl_host }, issuer_cert => $cacert, issuer_key => $cakey, # just reuse cakey as key for certificate key => $cakey, ); [ $c,$k ]; }; }; IO::Socket::SSL->start_SSL( $cl, SSL_server => 1, SSL_cert => $cert, SSL_key => $key, ) or do { diag("SSL handshake failed: ".IO::Socket::SSL->errstr); exit(1); }; } REQUEST: # read header my $req = ''; while (<$cl>) { $_ eq "\r\n" and last; $req .= $_; } $reqid++; my $req_auth = $req =~m{^Proxy-Authorization:}mi ? '.auth':''; if ( $req =~m{\ACONNECT ([^\s:]+)} ) { if ( $ssl_host ) { diag("CONNECT inside SSL tunnel"); exit(1); } $ssl_host = $1; $tunnel_auth = $req_auth ? '.Tauth':''; #diag($req); # simulate proxy and establish SSL tunnel print $cl "HTTP/1.0 200 ok\r\n\r\n"; goto SSL_UPGRADE; } if ( $req =~m{^Content-length: *(\d+)}mi ) { read($cl,my $buf,$1) or die "eof while reading request body"; } my $keep_alive = $req =~m{^(?:Proxy-)?Connection: *(?:(keep-alive)|close)}mi ? $1 : $req =~m{\A.*HTTP/1\.1} ? 1 : 0; # just echo request back, including connid and reqid my $body = "ID: $connid.$reqid$tunnel_auth$req_auth\@" . ( $ssl_host || 'nossl' )."\n" . "---------\n$req"; print $cl "HTTP/1.1 200 ok\r\nContent-type: text/plain\r\n" . "Connection: ".( $keep_alive ? 'keep-alive':'close' )."\r\n" . "Content-length: ".length($body)."\r\n" . "\r\n" . $body; goto REQUEST if $keep_alive; exit(0); # done handling requests } work/1776643672.97974/LWP-Protocol-https-6.15/META.json000064400000061705152424177470014767 0ustar00{ "abstract" : "Provide https support for LWP::UserAgent", "author" : [ "Gisle Aas " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 6.033, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "LWP-Protocol-https", "no_index" : { "directory" : [ "t", "xt" ] }, "prereqs" : { "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0", "perl" : "5.008001" }, "suggests" : { "JSON::PP" : "2.27300" } }, "develop" : { "recommends" : { "Dist::Zilla::PluginBundle::Git::VersionManager" : "0.007" }, "requires" : { "Capture::Tiny" : "0.48", "File::Spec" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", "Pod::Coverage::TrustPod" : "0", "Test::CPAN::Changes" : "0.19", "Test::CPAN::Meta" : "0", "Test::CheckManifest" : "1.29", "Test::CleanNamespaces" : "0.15", "Test::EOL" : "0", "Test::Kwalitee" : "1.22", "Test::MinimumVersion" : "0", "Test::Mojibake" : "0", "Test::More" : "0.94", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08", "Test::Pod::Spelling::CommonMistakes" : "1.000", "Test::Portability::Files" : "0", "Test::Spelling" : "0.17", "Test::Version" : "1" } }, "runtime" : { "requires" : { "IO::Socket::SSL" : "1.970", "LWP::Protocol::http" : "0", "LWP::UserAgent" : "6.06", "Net::HTTPS" : "6", "base" : "0", "perl" : "5.008001", "strict" : "0" } }, "test" : { "recommends" : { "CPAN::Meta" : "2.120900" }, "requires" : { "ExtUtils::MakeMaker" : "0", "File::Spec" : "0", "File::Temp" : "0", "IO::Select" : "0", "IO::Socket::INET" : "0", "IO::Socket::SSL" : "1.970", "IO::Socket::SSL::Utils" : "0", "LWP::UserAgent" : "6.06", "Socket" : "0", "Test::More" : "0.96", "Test::Needs" : "0.002010", "Test::RequiresInternet" : "0", "perl" : "5.008001", "warnings" : "0" } } }, "provides" : { "LWP::Protocol::https" : { "file" : "lib/LWP/Protocol/https.pm", "version" : "6.15" }, "LWP::Protocol::https::Socket" : { "file" : "lib/LWP/Protocol/https.pm", "version" : "6.15" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/libwww-perl/LWP-Protocol-https/issues" }, "homepage" : "https://github.com/libwww-perl/LWP-Protocol-https", "repository" : { "type" : "git", "url" : "https://github.com/libwww-perl/LWP-Protocol-https.git", "web" : "https://github.com/libwww-perl/LWP-Protocol-https" }, "x_IRC" : "irc://irc.perl.org/#lwp", "x_MailingList" : "mailto:libwww@perl.org" }, "version" : "6.15", "x_Dist_Zilla" : { "perl" : { "version" : "5.042000" }, "plugins" : [ { "class" : "Dist::Zilla::Plugin::Git::GatherDir", "config" : { "Dist::Zilla::Plugin::GatherDir" : { "exclude_filename" : [ "LICENSE", "META.json", "Makefile.PL", "README.md" ], "exclude_match" : [], "include_dotfiles" : 0, "prefix" : "", "prune_directory" : [], "root" : "." }, "Dist::Zilla::Plugin::Git::GatherDir" : { "include_untracked" : 0 } }, "name" : "Git::GatherDir", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::PruneCruft", "name" : "PruneCruft", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaConfig", "name" : "MetaConfig", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Package", "config" : { "Dist::Zilla::Plugin::MetaProvides::Package" : { "finder_objects" : [ { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "MetaProvides::Package/AUTOVIV/:InstallModulesPM", "version" : "6.033" } ], "include_underscores" : 0 }, "Dist::Zilla::Role::MetaProvider::Provider" : { "$Dist::Zilla::Role::MetaProvider::Provider::VERSION" : "2.002004", "inherit_missing" : 1, "inherit_version" : 1, "meta_noindex" : 1 }, "Dist::Zilla::Role::ModuleMetadata" : { "Module::Metadata" : "1.000038", "version" : "0.006" } }, "name" : "MetaProvides::Package", "version" : "2.004003" }, { "class" : "Dist::Zilla::Plugin::MetaNoIndex", "name" : "MetaNoIndex", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaYAML", "name" : "MetaYAML", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaJSON", "name" : "MetaJSON", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::MetaResources", "name" : "MetaResources", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Git::Check", "config" : { "Dist::Zilla::Plugin::Git::Check" : { "untracked_files" : "die" }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "LICENSE", "META.json", "Makefile.PL", "README.md" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." } }, "name" : "Git::Check", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { "git_version" : "2.43.0", "include_authors" : 0, "include_releaser" : 1, "order_by" : "name", "paths" : [] } }, "name" : "Git::Contributors", "version" : "0.038" }, { "class" : "Dist::Zilla::Plugin::GithubMeta", "name" : "GithubMeta", "version" : "0.58" }, { "class" : "Dist::Zilla::Plugin::Manifest", "name" : "Manifest", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::License", "name" : "License", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", "config" : { "Dist::Zilla::Role::FileWatcher" : { "version" : "0.006" } }, "name" : "Markdown_Readme", "version" : "0.163250" }, { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { "phase" : "develop", "type" : "recommends" } }, "name" : "@Git::VersionManager/pluginbundle version", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::RewriteVersion::Transitional", "config" : { "Dist::Zilla::Plugin::RewriteVersion" : { "add_tarball_name" : 0, "finders" : [ ":ExecFiles", ":InstallModules" ], "global" : 0, "skip_version_provider" : 0 }, "Dist::Zilla::Plugin::RewriteVersion::Transitional" : {} }, "name" : "@Git::VersionManager/RewriteVersion::Transitional", "version" : "0.009" }, { "class" : "Dist::Zilla::Plugin::MetaProvides::Update", "name" : "@Git::VersionManager/MetaProvides::Update", "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromRelease", "config" : { "Dist::Zilla::Plugin::CopyFilesFromRelease" : { "filename" : [ "Changes" ], "match" : [] } }, "name" : "@Git::VersionManager/CopyFilesFromRelease", "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], "commit_msg" : "v%V%n%n%c", "signoff" : 0 }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Changes", "LICENSE", "META.json", "Makefile.PL" ], "allow_dirty_match" : [], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@Git::VersionManager/release snapshot", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", "config" : { "Dist::Zilla::Plugin::Git::Tag" : { "branch" : null, "changelog" : "Changes", "signed" : 0, "tag" : "v6.15", "tag_format" : "v%V", "tag_message" : "v%V" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@Git::VersionManager/Git::Tag", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional", "config" : { "Dist::Zilla::Plugin::BumpVersionAfterRelease" : { "finders" : [ ":ExecFiles", ":InstallModules" ], "global" : 0, "munge_makefile_pl" : 1 }, "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional" : {} }, "name" : "@Git::VersionManager/BumpVersionAfterRelease::Transitional", "version" : "0.009" }, { "class" : "Dist::Zilla::Plugin::NextRelease", "name" : "@Git::VersionManager/NextRelease", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], "commit_msg" : "increment $VERSION after %v release", "signoff" : 0 }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ "Build.PL", "Changes", "Makefile.PL" ], "allow_dirty_match" : [ "(?^:^lib/.*\\.pm$)" ], "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { "time_zone" : "local" } }, "name" : "@Git::VersionManager/post-release commit", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::Prereqs::FromCPANfile", "name" : "Prereqs::FromCPANfile", "version" : "0.08" }, { "class" : "Dist::Zilla::Plugin::MakeMaker::Awesome", "config" : { "Dist::Zilla::Plugin::MakeMaker" : { "make_path" : "make", "version" : "6.033" }, "Dist::Zilla::Role::TestRunner" : { "default_jobs" : "8", "version" : "6.033" } }, "name" : "MakeMaker::Awesome", "version" : "0.49" }, { "class" : "Dist::Zilla::Plugin::CheckChangeLog", "name" : "CheckChangeLog", "version" : "0.05" }, { "class" : "Dist::Zilla::Plugin::CheckChangesHasContent", "name" : "CheckChangesHasContent", "version" : "0.011" }, { "class" : "Dist::Zilla::Plugin::Test::Kwalitee", "config" : { "Dist::Zilla::Plugin::Test::Kwalitee" : { "filename" : "xt/author/kwalitee.t", "skiptest" : [ "has_readme" ] } }, "name" : "Test::Kwalitee", "version" : "2.12" }, { "class" : "Dist::Zilla::Plugin::MojibakeTests", "name" : "MojibakeTests", "version" : "0.8" }, { "class" : "Dist::Zilla::Plugin::Test::Version", "name" : "Test::Version", "version" : "1.09" }, { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "Test::ReportPrereqs", "version" : "0.029" }, { "class" : "Dist::Zilla::Plugin::Test::Compile", "config" : { "Dist::Zilla::Plugin::Test::Compile" : { "bail_out_on_fail" : "1", "fail_on_warning" : "author", "fake_home" : 0, "filename" : "xt/author/00-compile.t", "module_finder" : [ ":InstallModules" ], "needs_display" : 0, "phase" : "develop", "script_finder" : [ ":PerlExecFiles" ], "skips" : [], "switch" : [] } }, "name" : "Test::Compile", "version" : "2.058" }, { "class" : "Dist::Zilla::Plugin::Test::Portability", "config" : { "Dist::Zilla::Plugin::Test::Portability" : { "options" : "" } }, "name" : "Test::Portability", "version" : "2.001003" }, { "class" : "Dist::Zilla::Plugin::Test::CleanNamespaces", "config" : { "Dist::Zilla::Plugin::Test::CleanNamespaces" : { "filename" : "xt/author/clean-namespaces.t", "skips" : [] } }, "name" : "Test::CleanNamespaces", "version" : "0.006" }, { "class" : "Dist::Zilla::Plugin::Test::EOL", "config" : { "Dist::Zilla::Plugin::Test::EOL" : { "filename" : "xt/author/eol.t", "finder" : [ ":ExecFiles", ":InstallModules", ":TestFiles" ], "trailing_whitespace" : 1 } }, "name" : "Test::EOL", "version" : "0.19" }, { "class" : "Dist::Zilla::Plugin::MetaTests", "name" : "MetaTests", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Test::MinimumVersion", "config" : { "Dist::Zilla::Plugin::Test::MinimumVersion" : { "max_target_perl" : null } }, "name" : "Test::MinimumVersion", "version" : "2.000011" }, { "class" : "Dist::Zilla::Plugin::PodSyntaxTests", "name" : "PodSyntaxTests", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable", "name" : "Test::Pod::Coverage::Configurable", "version" : "0.07" }, { "class" : "Dist::Zilla::Plugin::Test::PodSpelling", "config" : { "Dist::Zilla::Plugin::Test::PodSpelling" : { "directories" : [ "bin", "lib" ], "spell_cmd" : "aspell list", "stopwords" : [], "wordlist" : "Pod::Wordlist" } }, "name" : "Test::PodSpelling", "version" : "2.007006" }, { "class" : "Dist::Zilla::Plugin::RunExtraTests", "config" : { "Dist::Zilla::Role::TestRunner" : { "default_jobs" : "8" } }, "name" : "RunExtraTests", "version" : "0.029" }, { "class" : "Dist::Zilla::Plugin::CheckStrictVersion", "name" : "CheckStrictVersion", "version" : "0.001" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromBuild", "name" : "CopyFilesFromBuild", "version" : "0.170880" }, { "class" : "Dist::Zilla::Plugin::TestRelease", "name" : "TestRelease", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::ConfirmRelease", "name" : "ConfirmRelease", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::UploadToCPAN", "name" : "UploadToCPAN", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::Git::Push", "config" : { "Dist::Zilla::Plugin::Git::Push" : { "push_to" : [ "origin" ], "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { "git_version" : "2.43.0", "repo_root" : "." } }, "name" : "Git::Push", "version" : "2.052" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":InstallModules", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":IncModules", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":TestFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExtraTestFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ExecFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":PerlExecFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":ShareFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":MainModule", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":AllFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : ":NoFiles", "version" : "6.033" }, { "class" : "Dist::Zilla::Plugin::FinderCode", "name" : "MetaProvides::Package/AUTOVIV/:InstallModulesPM", "version" : "6.033" } ], "zilla" : { "class" : "Dist::Zilla::Dist::Builder", "config" : { "is_trial" : 0 }, "version" : "6.033" } }, "x_contributors" : [ "Adam Kennedy ", "Adam Sjogren ", "Alexandr Ciornii ", "Alexey Tourbin ", "Alex Kapranoff ", "amire80 ", "Andreas J. Koenig ", "Axel Burri ", "Bill Mann ", "Bron Gondwana ", "Chase Whitener ", "Christopher J. Madsen ", "cpansprout ", "Dan Book ", "Daniel Hedlund ", "David E. Wheeler ", "David Golden ", "DAVIDRW ", "dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>", "Dmitriy Shamatrin ", "drieux ", "Father Chrysostomos ", "FWILES ", "Gavin Peters ", "Gianni Ceccarelli ", "Gisle Aas ", "Graeme Thompson ", "Hans-H. Froehlich ", "Ian Kilgore ", "Jacob J ", "Jakub Wilk ", "jefflee ", "JJ Merelo ", "john9art ", "Jon Jensen ", "Karen Etheridge ", "Leo Lapworth ", "Marin Tsanov ", "Mark Stosberg ", "Michael G. Schwern ", "Mike Schilli ", "Mohammad S Anwar ", "murphy ", "Nicolas R ", "Olaf Alders ", "Ondrej Hanak ", "openstrike ", "Peter Rabbitson ", "phrstbrn ", "Randy Stauner ", "Robert Stone ", "Rolf Grossmann ", "ruff ", "sasao ", "Sean M. Burke ", "Shoichi Kaji ", "Slaven Rezic ", "Spiros Denaxas ", "Steffen Ullrich ", "Steffen Ullrich ", "Steve Hay ", "Tim Couzins ", "Todd Lipcon ", "Tom Hukins ", "Tony Finch ", "Toru Yamaguchi ", "uid39246 ", "Ville Skytt\u00e4 ", "Yuri Karaban ", "Yury Zavarin ", "Zefram " ], "x_generated_by_perl" : "v5.42.0", "x_serialization_backend" : "Cpanel::JSON::XS version 4.40", "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later" } work/1776643672.97974/LWP-Protocol-https-6.15/Changes000064400000007234152424177470014636 0ustar00Release history for LWP-Protocol-https 6.15 2026-02-23 20:36:42Z - Make TLS enabled proxy work (proxy URL https:// not http://) (GH#89) (Steffen Ullrich) - switch from example.com to httpbin.org because of SSL certificate issues (GH#91) (Slaven Rezić) 6.14 2024-03-11 01:08:33Z - Inherit with 'use parent' instead of 'use base' (GH#78) (Marin Tsanov) 6.13 2024-02-06 01:00:50Z - Fix ssl upgrade for regular host names (GH#77) (Axel Burri) 6.12 2024-01-22 17:51:31Z - Enable MultiHomed for IO::Socket::SSL (GH#61) (ℕicolas ℝ.) - Making it possible to use IPv6 in https call through https proxy environment (in case of using CONNECT method to create a tunnel) (GH#74) (Dmitriy Shamatrin) 6.11 2023-07-09 15:10:30Z - Remove Authority section from dist.ini (GH#64) (Olaf Alders) - Add very basic diagnostic information via test (GH#73) (Olaf Alders) - CVE-2014-3230 - don't disable verification if only hostnames should not (GH#14) (Steffen Ullrich) - Make explicit requirement of Mozilla::CA obsolete (GH#72) (Steffen Ullrich and Olaf Alders) - Remove _in_san and _cn_match. Empty out the _check_sock hook (GH#71) (Chase Whitener) - Use warnings (GH#69) (Pete Houston) 6.10 2020-12-17 15:42:06Z - Fix #39 - prevent user env from breaking the test (GH#63) (Gianni Ceccarelli) - Include Net::SSLeay in reported prereqs (GH#60) (Olaf Alders) - Use GitHub as a bug tracker (GH#59) (Olaf Alders) 6.09 2020-07-16 13:33:05Z - Make available the version of SSL/TLS protocol used in the connection (GH#56) (Jon Jensen) 6.08 2020-03-23 20:19:22Z (TRIAL RELEASE) - Add defined check (GH#53) (Mohammad S Anwar) - Fix copyright year (GH#55) (Olaf Alders) - Upgrade Mozilla::CA dependency; originally #26 by dolmen (GH#54) (Shoichi Kaji) - Adds coverage tests (GH#51) (Juan Julin Merelo Guervs) - Migrated to DZil (GH PR#30) - Moved bug tracking from RT to GitHub (GH#48) (Olaf Alders) 6.07 2017-02-19 - Cleaned up the Changes log - Explicitly add hostname for SNI to start_SSL (GH PR#17) - Fix the license name - Update some documentation on SSL args - Fix bug when checking for Mozilla::CA (GH PR#29) 6.06 2014-04-18 - Merge pull request #12 from drieux/subjectAltName - Merge pull request #9 from chorny/master - Updated libwww requirement to 6.06 to fix failing t/proxy.t test cases. - Getopt::Long isn't actually used - Merge pull request #7 from noxxi/master - better diagnostics in case of failures in apache.t - Merge pull request #8 from cpansprout/patch-1 - correct behavior for https_proxy, this goes together with change to - libwww-perl cb80c2ddb7, new method _upgrade_sock in LWP::Protocol::https - Typo fix: envirionment =~ s/io/o/ - support for subjectAltName 6.04 2013-04-29 - Fix IO::Socket::SSL warnings when not verifying hostname. - Doc spelling fix. 6.03 2012-02-18 - Skip test if offline [RT#74163] - Typo fixes - Restore perl-5.8.1 compatibility. 6.02 2011-03-27 - Initial release of LWP-Protocol-https as a separate distribution. There are no code changes besides setting the version number since libwww-perl-6.01. - The LWP::Protocol::https module used to be bundled with the libwww-perl distribution, but it was unbundled in v6.02 in order to be able to declare its dependencies properly for the CPAN tool chain. Applications that need https support can just declare their dependency on LWP::Protocol::https and will no longer need to know what underlying modules to install. work/1776643672.97974/LWP-Protocol-https-6.15/Makefile.PL000064400000003735152424177470015317 0ustar00# This Makefile.PL for LWP-Protocol-https was generated by # Dist::Zilla::Plugin::MakeMaker::Awesome 0.49. # Don't edit it but the dist.ini and plugins used to construct it. use strict; use warnings; use 5.008001; use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "Provide https support for LWP::UserAgent", "AUTHOR" => "Gisle Aas ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "LWP-Protocol-https", "LICENSE" => "perl", "MIN_PERL_VERSION" => "5.008001", "NAME" => "LWP::Protocol::https", "PREREQ_PM" => { "IO::Socket::SSL" => "1.970", "LWP::Protocol::http" => 0, "LWP::UserAgent" => "6.06", "Net::HTTPS" => 6, "base" => 0, "strict" => 0 }, "TEST_REQUIRES" => { "ExtUtils::MakeMaker" => 0, "File::Spec" => 0, "File::Temp" => 0, "IO::Select" => 0, "IO::Socket::INET" => 0, "IO::Socket::SSL" => "1.970", "IO::Socket::SSL::Utils" => 0, "LWP::UserAgent" => "6.06", "Socket" => 0, "Test::More" => "0.96", "Test::Needs" => "0.002010", "Test::RequiresInternet" => 0, "warnings" => 0 }, "VERSION" => "6.15", "test" => { "TESTS" => "t/*.t" } ); my %FallbackPrereqs = ( "ExtUtils::MakeMaker" => 0, "File::Spec" => 0, "File::Temp" => 0, "IO::Select" => 0, "IO::Socket::INET" => 0, "IO::Socket::SSL" => "1.970", "IO::Socket::SSL::Utils" => 0, "LWP::Protocol::http" => 0, "LWP::UserAgent" => "6.06", "Net::HTTPS" => 6, "Socket" => 0, "Test::More" => "0.96", "Test::Needs" => "0.002010", "Test::RequiresInternet" => 0, "base" => 0, "strict" => 0, "warnings" => 0 ); unless ( eval { ExtUtils::MakeMaker->VERSION('6.63_03') } ) { delete $WriteMakefileArgs{TEST_REQUIRES}; delete $WriteMakefileArgs{BUILD_REQUIRES}; $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); work/1776643672.97974/LWP-Protocol-https-6.15/perltidyrc000064400000000330152424177470015435 0ustar00--blank-lines-before-packages=0 --iterations=2 --no-outdent-long-comments -b -bar -boc -ci=4 -i=4 -l=78 -nolq -se -wbb="% + - * / x != == >= <= =~ !~ < > | & >= < = **= += *= &= <<= &&= -= /= |= >>= ||= .= %= ^= x=" work/1776643672.97974/LWP-Protocol-https-6.15/dist.ini000064400000004001152424177470014774 0ustar00name = LWP-Protocol-https author = Gisle Aas license = Perl_5 main_module = lib/LWP/Protocol/https.pm copyright_holder = Gisle Aas copyright_year = 1997 ; Gather stuff in [Git::GatherDir] exclude_filename = Makefile.PL exclude_filename = META.json exclude_filename = README.md exclude_filename = LICENSE [PruneCruft] ; Handle the META resources [MetaConfig] [MetaProvides::Package] [MetaNoIndex] directory = t directory = xt [MetaYAML] [MetaJSON] [MetaResources] x_IRC = irc://irc.perl.org/#lwp x_MailingList = mailto:libwww@perl.org [Git::Check] allow_dirty = Makefile.PL allow_dirty = META.json allow_dirty = README.md allow_dirty = LICENSE [Git::Contributors] [GithubMeta] issues = 1 user = libwww-perl [Manifest] [License] ; Create Readme [ReadmeAnyFromPod / Markdown_Readme] source_filename = lib/LWP/Protocol/https.pm type = markdown filename = README.md location = root ; make the bin dir executables ; [ExecDir] ; [ShareDir] ; Handle Versioning [@Git::VersionManager] commit_files_after_release = LICENSE commit_files_after_release = Makefile.PL commit_files_after_release = META.json RewriteVersion::Transitional.fallback_version_provider = Git::NextVersion [Prereqs::FromCPANfile] [MakeMaker::Awesome] [CheckChangeLog] [CheckChangesHasContent] ; TODO strict and warnings to quiet the kwalitee tests [Test::Kwalitee] filename = xt/author/kwalitee.t skiptest = has_readme [MojibakeTests] [Test::Version] [Test::ReportPrereqs] include = Net::SSLeay [Test::Compile] bail_out_on_fail = 1 xt_mode = 1 [Test::Portability] ; TODO perltidy for NoTabs [Test::CleanNamespaces] ; [Test::NoTabs] [Test::EOL] [MetaTests] [Test::MinimumVersion] [PodSyntaxTests] [Test::Pod::Coverage::Configurable] trustme = LWP::Protocol::https => qr/^(?:socket_type)$/ [Test::PodSpelling] wordlist = Pod::Wordlist spell_cmd = aspell list [RunExtraTests] [CheckStrictVersion] decimal_only = 1 [CopyFilesFromBuild] copy = Makefile.PL copy = META.json copy = LICENSE [TestRelease] [ConfirmRelease] [UploadToCPAN] [Git::Push] work/1776643672.97974/LWP-Protocol-https-6.15/perlcriticrc000064400000004405152424177470015750 0ustar00severity = 3 verbose = 11 theme = core + pbp + bugs + maintenance + cosmetic + complexity + security + tests + moose exclude = Subroutines::ProhibitCallsToUndeclaredSubs [BuiltinFunctions::ProhibitStringySplit] severity = 3 [CodeLayout::RequireTrailingCommas] severity = 3 [ControlStructures::ProhibitCStyleForLoops] severity = 3 [InputOutput::RequireCheckedSyscalls] functions = :builtins exclude_functions = sleep severity = 3 [Moose::RequireCleanNamespace] modules = Moose Moose::Role MooseX::Role::Parameterized Moose::Util::TypeConstraints cleaners = namespace::autoclean [NamingConventions::Capitalization] package_exemptions = [A-Z]\w+|minFraud file_lexical_variables = [A-Z]\w+|[^A-Z]+ global_variables = :starts_with_upper scoped_lexical_variables = [A-Z]\w+|[^A-Z]+ severity = 3 # Given our code base, leaving this at 5 would be a huge pain [Subroutines::ProhibitManyArgs] max_arguments = 10 [RegularExpressions::ProhibitComplexRegexes] max_characters = 200 [RegularExpressions::ProhibitUnusualDelimiters] severity = 3 [Subroutines::ProhibitUnusedPrivateSubroutines] private_name_regex = _(?!build)\w+ skip_when_using = Moo::Role Moose::Role MooseX::Role::Parameterized Role::Tiny Test::Class::Moose::Role [TestingAndDebugging::ProhibitNoWarnings] allow = redefine [ValuesAndExpressions::ProhibitEmptyQuotes] severity = 3 [ValuesAndExpressions::ProhibitInterpolationOfLiterals] severity = 3 [ValuesAndExpressions::RequireUpperCaseHeredocTerminator] severity = 3 [Variables::ProhibitPackageVars] add_packages = Test::Builder [TestingAndDebugging::RequireUseStrict] [TestingAndDebugging::RequireUseWarnings] [-ControlStructures::ProhibitCascadingIfElse] [-ErrorHandling::RequireCarping] [-InputOutput::RequireBriefOpen] [-ValuesAndExpressions::ProhibitConstantPragma] # No need for /xsm everywhere [-RegularExpressions::RequireDotMatchAnything] [-RegularExpressions::RequireExtendedFormatting] [-RegularExpressions::RequireLineBoundaryMatching] [-Subroutines::ProhibitExplicitReturnUndef] # http://stackoverflow.com/questions/2275317/why-does-perlcritic-dislike-using-shift-to-populate-subroutine-variables [-Subroutines::RequireArgUnpacking] [-Subroutines::RequireFinalReturn] # "use v5.14" is more readable than "use 5.014" [-ValuesAndExpressions::ProhibitVersionStrings] work/1776643672.97974/LWP-Protocol-https-6.15/Install000064400000001747152424177470014677 0ustar00This is the Perl distribution LWP-Protocol-https. Installing LWP-Protocol-https is straightforward. ## Installation with cpanm If you have cpanm, you only need one line: % cpanm LWP::Protocol::https If you are installing into a system-wide directory, you may need to pass the "-S" flag to cpanm, which uses sudo to install the module: % cpanm -S LWP::Protocol::https ## Installing with the CPAN shell Alternatively, if your CPAN shell is set up, you should just be able to do: % cpan LWP::Protocol::https ## Manual installation As a last resort, you can manually install it. Download the tarball, untar it, then build it: % perl Makefile.PL % make && make test Then install it: % make install If you are installing into a system-wide directory, you may need to run: % sudo make install ## Documentation LWP-Protocol-https documentation is available as POD. You can run perldoc from a shell to read the documentation: % perldoc LWP::Protocol::https work/1776643672.97974/LWP-Protocol-https-6.15.tar.gz000064400000104004152424177470014463 0ustar00thЮҒEVLj(R B_``Ոʐ-W=ޏ%0+IH: i]yNw/9r}JT\NӴjZ)]*R_ PO적66>k㰔dz56kwVW`(@VBcc$遘\- h:(1y#E Oe%]zh @6 fy2[o^v  񼹸8`%tb&x@`h0a"\dkaW 4?rl-PТRFv>z&c̉66\.zC;lT-`+3h"`%@o"[RV ZR5yg £yZb%mjP/:$=-9=N38Bc9hfpO;ZB\*9!&r~x E\6OhDЕZ# d BeB?("B9Z7 V ?qX7c(qSz|jnZg8{@R7?p'nm@R}'gm`.b*a ^Up 9}eJf"qǣR!?1NpʯlR@^B)NJ4?|x^督qB )r̵o"51#pBD\KkFjȠG5$iI7mpMK˙x1 [<,LX44Sq+izpr\;!?ϲ rdm;\(N{mmӝ4x]g 8y=yes =4G6/`ͭq|O-kgdLbͅż &Z\ηZ榓Uq)%V!EO($(\w0 *#,8Rd+)V .K4/V.=Ïefwniz;'΄wKJNO8a0DI|so{kHv`H䙎f+ QAO"4Z _~LeCL2 ϲ]M#H2XJպ4S9.O'^~r' f9$1s_4|{@HA y'2yIm"_B_ס ɲ7v EDi牗^v!rE;" /A"u+O.9T6 (H7~Sܼ~(z;eYUW1ǚID%$J9E1Mo iBWmqd6DKjSDb{#wJgg0̮c_^͙qzW8~h`L0Dݍpː}+\wݧla:rw)ipAt?P.yRVYGƨR?7|$e_(xo"t#beK&iQ: ]h͝=nbޅtތA֮kK5Zgqq{Gc_;lg9 ngf6>ŧM.EG ṣW)ܼ=aeU{.oXo$;`9@\jDSr8H򚟉 Lqɻ`*\Ӓ.8u+5c)O2,~$x6˓U^0IBfiI;r}GӃ{B~L{複_Z$1x$|_ސZcp >qOB<!TE>:0SKI6 IJى}:-#¶|6Dfdq:,"CU|*cͅå"sE &"x#W`u_:Fkwo?Nj:4J&Rkyt29<f4g/l/KY1JK/gғГͅ 9Pqa N>=d5fr!b !jxl8EHR|VA' (Ƣ0/Dkk[,}TYCS)0i1ɋXJ ZO;_bp? #+bޔy-BoDCJP=a7寍[2.!;$.WH`4'S2bYERڧUἤ!y!Đ%vS 7#IJ6$̊`NC !yXc_ˌzT_a`<7w~}iXj5 V8ilLĀ^1#BoK\E K^#EM"O]"\[kh 6@Gw2q•/fU2ӕ $udrV)t0!3po/KL~|5{dc>,a Kޛ8kܡNǬ9vR@x >#OAЁ<,(hNN3%N!so8wN!wX~_Z%xAJްP&; !,gXrA)l5R7Go(ҷg 9!Op씓hzr|!gW?R8-:2hxb<Έ ŀe=Y!@pq 玦E,Mb4О"ECkTe%QaDf;CB&yFj]Ng4 <ǖi#rsP{l>t>[rY7Gb,d1NjeaiL`]P"王 z ^,S N8]ᜁ𬄢yG|C)HqH .]Ma/`f8Xh_ISb-4CaO\iK*t\,=U-IsU@ i%G8ZQɵm,Xp#=ùs;9>(LN9pMtp$ڱPnXsDZ%OJ' ֟ބ'd}6|d?+64AŸ}p%'ԅs=X/%C721KEb$Ks;9܍6ND% #T$):R'7?¸~zzؾ ;޻m,6x,II:Z툖hN(V)X$$7O0s7o2$IݍR^gk">TWWWUWWW$P^]_pG0~_HsGdtҧuͮbYG^@MdDps6z]Z :9$-(蛼hԁ~°, PiNc#la׉l {MG;\Z]|D_9"JT(?\}Zi`CC>``-K~{S4 )!qVɘwCF)j#ZD)V o0YMAY,e~`}ja9O RdI"J. 进<+Z*7E)`qi4zƻ$^OqR.J/EBpv[\55Em7Y{3YZ [k.;5 -%7lBUچvOKTu)*&X!2?,;]ҸP@`0}ҞPm`cn5fӲ!/~Ͳ`qغƻãFad-|<7s+ü, ؊MBN.`PEF- #*Fng!u8m7_rTXB YPQ"{q~x;lP!91-PCAzsCl'FFH Ud\R8 p۱<w4·4chk&+nYn3b8^v-!^e # ]N z7VR[7hJ x j瑱X<5A(pBc۰PtqP\-ENj r.Ʈ9`Z^rCĥ}((BV8J(4Qc%BYpyڙ0Jc\uЧ!qp&J@Ni]F/o m%0`B62xfٯe>_G w@g?.R0&&P'oxj6@`,`+Q0&-fm^MTT@m5d¢(]Pzr0{U5)Wq\#SNlzj05/<32TtYMd tZ{MV9ڐ,nNOa)H| Yt|-AK7<~iK-[bEt5Ij͢[޺$&6.T+t&Z(a'tG zw:—P<¬(hų>5?Dbn6į ma=p{6E9)3nGLVhE-7Vtm*M>(&Vw4<,E9k[HsA'B"y{Chv|.:=&\;О sݳ\|";W9-{F*,}r[).DyGtZGO7<1ıb//0ґa*4C'b WE_IDzbN'p,v|(OO 4! kb)!sO6Ho";t vaUf^>E-S}4t;Ecx~H)4=&M;.бtTľȑNײ+v -T-类-k[SC@#ь w`-D9/:Ttf{tf.-8-DPys{.i,=y0I<+q%;.aw| &pHB"'|\*d~ab`*#'pr3 Э \OGLJ|Gwsԣ~ȹPS~J>lKV\:S\C?mEYX r CT]WMvNt @rGR9ּ&̅Jq;EP{vԡۆ!fZN&]!<0M:;gK@n 2@k+Xr(#)((l=]J7|UDW`#2ڧ PɇTI4U$mCOEۆ|^S&,\~Z,o{>YN7HՖj(dm:q˪;_"2u2\5q[/l51մ5V݅p,) Cwj@DN\4: @y-~Vov~T:׬.0c"a"YdO &Xb؆^áWnpu kppmX<j= GL䀯tkPI6EQ۞tH!J&@T 41rvѓvNqUHhI^\Rw.\[߈5 $Lq'Z"(;S+(ŧ|daY J*]s/el<]?lޓ%{l1+nPw &+nV, &NRcڔa\cl=]/$MWb%nEk ׵V3J&D%M1M>'|y72QvudEb1hװre,wÊG_4m#=1nDR؜F{pW%|* 2yW(i;cD6 Z "mwKaulD1p·H<«0RpYuߌ OTs\Nn5'1UmSmPnˀU=Xwbaո\ V?>4~\<1A \9?,N+T2n W$O!QI]]DTI߉og~l'*u5Q,#~W%Åz[/Ӝ95D3vr<ͥ[0&ÆI#=^|S8Iݙ/i-fKʛ:IZZ/:ϟ,? ?̃@'9R*Z-jj$H,v"Xso! 7G(WD5Ƶ/;2 hD3qŠ!p~;Rv5GhajO(Ć&>gǰ[Icl*2ԎN*աSz7fT A

g]>!v(Gq4Si%j4HBB áq A9+ 12$K%# + 1I\&sxXN)=L!,\~sNJZbPA.摦 a O;e"$?Ubk_8$0WcFȇbTubN̏!yvDK݆O'>5&ծ"}񿀚/l]ZTz^|t/J)\z|k H#մ\;KauuEFI2hYѲnc%/]eE.!)o:0y+2#DXK%#N$^J8)0$iJKꃌ FeEy/p;,/rF0htx&? 1B\5;Y2 ܙwH s 㒺+n~J ?3FLJ/P->4a/q-Y~T1R[8E0RI#fsYmdx&]^< hˀO?:7a6.O ER@JJVry6 `H2Q9{99'ksY7 _7"t̋?e,]GtMZzuh;\*LLJ|4~VX8>7W,\1Ƚ'>k_}j6V*M.FITo;G8-y:Jqs`0 {E hz|m ^ugRḛaЮB 7R٫}:W*2_K"?P46O Wj"7ulu m|Z}[\"D܀1/b+ ,Z9TC—@e:Ckblct[m%68Sf 4Ȣ&mbh*-m eؔZm%b&"~0<ź=wGǵ5ee}e8sdD~ 9ZDO&_f*<4%k6o#GkŜ|I D E"n <]Ž10T08 cs9R3 Sc-KUxcB{-<ĭ(ihUW慙U_lf@U':݇֬.Jk%IM̏UyH(FpFKշ+ ORtHtB!YKMv4N\Xru/Nq4>HA@ZֆAI,RoQo\.L iSȉ"aA~9a`3 !`]B)Ԙ WAW?ǃ|:A*}n50 .3_Xx'zp,Eנ6:+FgdtN~{W)+IP?ó/"Pl/b!ZB&q &S$'gF7B%>Z$=|W]t*85L O|; 047uݹDk!HB j5EN*d:vsɊB{;hM uvB3oN^7Oj YR`Uv">H# >(*9W̝~ ̒}ʮp܈@e8I?Ê {ж {> tjtYb =-;!<U@I @~֜VMDI>+4Qr7ZՅ(z=)<"M! T@yKYsz5QqAEd?_RegxN=:e.2$2/~o~T>Zz_V9ژb'᝶9d3ύ!'߮dMjld3E3BG;tӣZF^zV1` IOe} +q4YMm@?4niՂȕV H+u?u]Ϊ]٬ړLPϕ1S!ft B)1\!'p?) Կb?<?s^aDdv1i[BL!^sXSv~o1ɗ50+,n8u~B|M|4 -|z &@z'Ц L!o^[U-ܼ69yMw OGpc'y~_ݹqmWG.'axoCس]T lp@f&pl0pVa[H^?NTM;i?ɇvTdAɔg"S(9L`MP'Fy f{0Eod(#$'TQFݣW,{ʿ:x#^AV_Z A  G*^C^n(LD'%MRi =a v( XUebrMB NfBݾtZ\7lb9YN&˾E;UPI?Rv\Go^)j"cg0k=<Ց.9e?mA/|:Jș֔# )lU,$^7R*Q>GcMNj;:y5-`RL; sc$ ZvD$9p F/(h^dK-&Li}xm u0*/3:@cE;KA[(@KG#l5R`0 k2hK45m1:-yp%hcw;Q[C-z>[ Z a .n11O@n;0v4Pؕ~g n9B4[8t<`LXe]crXs0'يA`&U嶏g!#dĂdsbIهօoxrCP(o(jC$@灦ǹ0zM05yr5sr;P }q'+P *7:^` َD6YK(Kp$IZW$I-~- /Dfs6ǒUc54fZ@S !RA]Wc<f-E@T])0Zkb3 cQT(4Ýbb tȁ!1 *ByРŔ ˋ(X Q!;=X$bBsRͩL*Wfu"tlMfP ĔMNQ,^{$Agcqfe>]N0oe] `/d@pE>K$\EcT+`%(Llbs@B*-} rxa-ܥԃ2j˒gƑ  :n8obb1Jڶ : `tR;o.Cޭ1 .U'i E(i̠LKg$P$ Bx-䀃dE&N1j;LHqh/\pn{>n>() j"%F)<$`30vvAGEb5ݎjaѼSCV 'TeX ӼͦU@#,UJTrYXLg;s)te~L!0 `Pt&|  Y;C;YH].!.0wbP'C#rsdrBH@A:AZ ʆ$l}!O(H$6nHTHl/*B pC1xcF e+^myVʳNm($FbDl$:bŇ9G/dg…m[6vR]]wI( S$5gQ/j#hL=[x8Y!M)i0-$ҽQJc^pE>J4k,п- Mkū; 8+л2[}Hk3\I Ps!X){Εa@NB YP e#3*d&v[d3״ \) S!gwlVEZ2aO $$ ))4/.a}Dgx-Ǝ$Pjalh,\ұ/, i9dHW"-&cY+`b5@Vu=/^^K 4pI|Z`EemvLvoH3.|Sf 'Ǡ@.' 8$&~V-aL|0&W }l$ܨf"Pfj4&ҰKKa.ݍա-crd|hJ|(I9vat˪U^h [t`3 UۄfkM='l<1[䳇 ~ڥ:P_Y$؅=J1j̖q,XEԾ:IjJ%vrV!n!㘏e7}{mU=#;br鲪w[,S@aL{Zɠ-8A=lN!cE5,CL]PdŻ!DB tSqOA!I@ia<͡ J{CgmkmDvXQ "Zc&I肢JJHkY2m,][cmN/#1-B9L`^/C:3YjEPiSOڎS"'yUf3 yMLI5 .[?VXEbbowHaٗZ2#J^,iQq=BF̎em vl?WؒM1ppOV6mܾMpB J'BIBi[2X%DQDLԕqG0h\rR̈Zezʮn%sRH^Ks[llHt5q!&o, Xͽ,5M "BDHQЍOP~ʊ2M%$ylB2l 1O}dѷ'0RgLxOu7mn ?pphM'+( lv3;1,x>a#K^p)xQԏmH [~{Qtd(q`82oqV۩i8:>|u\:/k5qR켮q KMᑇ:ߵNQx~rx'GGx^MUߢrF}];uqR WA:l\Q_DaIכn mWvhRߠqbK@Dnem+L/nokߍBޞ8wQ;xkG:>)qJj" 9j J6Ƽ[o9PzT^ēPW9;I>KRELO@!8EZ#oi"`^4j;u`+ "<*L' PNAE#wz].}bﰁTA _԰qE˩M ,M\?U,^V{o'h z>bDkzB5@Dk9{"j߉0/jPk9cZh%Ne Әjg5C4Wܬβ?>wȞ@/2I9.vJqb e攇"EkGrv6lV'QymoP,/'eccc~Ӗ{Xҧ|JTgur m/N=PɺHCHi5<M]( glֿRK RSԆLI*asVrWyʄ?P!a⭟g* ž">mV:]MˬӨS[iڧP? 9JVa_C0DMqӕTb]iG>ghHWɼ>kf/ FGxEJo;.dm>ރP0H[3gd"+CmIƱԴhX@[hc|F{%K !aÅs$2*9=}@) 2&8+NZp4>p\F@GqvrH ;k7+J$D6ZEpwE)gRCD|1Igo%#m;}Z\o& dKe<jYkKңH9hbo8 }QѡEGP|^d2g$hV{~KYࣥن& m,œAX( ϥq8B2s댎mC#1{A:[! ܌NTs؇&*=Z:Նv0F)f❍a dH!;wƞ>y2Nƺv{A^=ɘ* y`Z9[)@AAx΂{AOTn;񵧈@?yQ}+p|@įl9 =R~ţvf;>|N&]QI_UԘڿE{)Sf_J8öHɘB #94YG0kxҭ)Z;y+?gّJ+"Pk[n2}yG5灆[,Ӂ!LM yp', ?(P(Dv0];<#d8}Nے/U^s#㝢C)$G ےt3iDHhZ2֭pZ< (a2fYDs(&*PGi9zJ7lH(7!p:m?bJ 8[$<ُi[ˉH(P) jF-N D i'"ưl):Ҿy)h@#T e^DGO7qֈ* / >EBP JTXeˍC]Et$g%g2؝ S8p(xڀ@ 2IW89=*@6czn{]KteStEM"ht;XyB `j2,"lHig(WjzKEzVa1Z&t0˂_ #=Rje' у[hT?egbFQOQtRb(&5zTP=ۓIcF/hx8,d荓IWь9ەc؟QϤ8EfcJJsI%y3bxi]جUYE24E3ؑDM`{=3vj/5/-u=+*7ʏT{Ơ ~i89kcyҡSM&":qhF WUВib5 .޴vcǙ"reչР!#%gJxɲeDRm U Mir41d;.t[U2H"T7(0aYuO{uخ Ee񜱹fMLF-AKKMxw N<-&*F]WnT]78d<|0CŸţ*iZuwVt^+,wQ7:E _ŝe;IMz1Pw(/)8bV*R~TSO}K(*{ύXuzj]5;P ڕ%QrAxϥ $mU֒Ȧ,Y O4N8F7.7Aw8(bpP&㛇*}(pKw1!i{h|zjNUltIU*Fw9hH ?-CfD^=}L$VjBn&U ڡQ|8(r;|e?[z;0 6q Jik3%GJ`4 +1"Jx@PJ\aĜJXjK-TIx)ܒxcA)NKgQoo7̸lNocծ05i 9n0Fs̛Xb$bCF!>qJ~z4 N?Sr|/[kr{O`A!7i*/=.~A>Þr{Oi:)_c73[)a"e#K=̠\zPP9㳹Ó%%6(A4J h搶cV樶29 l+=2m~BÒ8)oi5` 0 `Bo@P1rtv4?|1R}q _^Y^MՕ->yKgGE цd&\FV͕r[ȳZTzSZ,.2/SNN{Lk~i͍ɢ{iR7T{RDA\>99jB7yo,cX^p/8)`LMW?kו$"|1oDuZOqryY9ًܡ:NGA -Ӛ;xM\Y &gX'E͞v bI(5_*>O0/wݸTV-.]..oN+ܣK1rf&iQX)o8oN1|#G<4mۇ7pPDP.|?aX2yo>C]c۩ZZ|3)l]>:jPba\;x48%ձ٘{ydjNwY S@O(GL$eI;Zz\0gkQ.H#{HZ#1(âlC!{xY QBm+s _]I[Nѭ[%誓(k^<^8PKCCVx̾pe R4<_Ӽ.S%X[OJNR{hJe %;i*RCyo.TV"$7ZWܖ7 M[ZlkS1f~oP tɴuKhq7! .}|zSy}45dGC^b/E{x̝ju\&f," ēal/*fB׉k/2C/ֶG- PĩHDUַTVīFΤNP@u'xnzs/!0j]⌛tUVݷ]8&xX#:̄Lٛ\"eȑ@*t[tC!睺PD&NfS^ ȳ6g?ڽA0gk _m=\?/F_5Fj|f?b%;P?9@!>O'[C(xՃ턘zneM#i)v:FKĘ!xdl61RBhxn^d8љ֞;lC[vG=pڇـ}N}>p:Yhq_bzֱjE([жDߵ3^:g5>Hptq?.VcF1JVFߦ<nD/!ѳNa~0}ϼM&#%ܶ@1, a i FllyP0X>S#7Jaj `e`IvhV"~J҂Qg# qLAooȁD@RpkvV6W׭ KZ]Zc?y2tafv(^Gn\?-Kko*ԅ#ƀUS͘U^CU`"PT$Է2.t\K y uʄGݚYߚu Xn֞Laְo॰I)`U t'MA_3tNdQBGcy/ |<ELhR9Y"V*| o{1X̅Qb|h\x AYwkA䫊>'%fvq΢ŗ$QĽxܵxc$R8٭F8OT+]\n`[?y,/>1kx2M5Wt_a~%4YM}xޠ="4k]1W;k9?MQ.^yYB ]x_YГ!Fb c(*TKWa: ouu/?A?&[T/\,/Hgf岘W,cx qt>0fuUn<:ymmoA=׆3b҇( d ^^MbT<}}=1`0B ``ʻƧ h3՗3%1tq>6=jɆdT"25|)})aޗHS]Xԃ+7-R^E1i&S zu鰑xnˬdGyPFG:aìgkXHtgFw|,8득ᆕO͂j0ssLxcNQP~eż~)!aq~ M0=YZM@9HS/49rh~-?/_YyԱ 7v;%xމP P?lLg+PwE_ 0ѰEefY)ȫ!+<ǡ*Gb:?.LQJ*<TX"9o~O?aOo;.N @I"Ow~VQ \٭#EE9QekKbk=DX7سnYH9m4[c8t@ o"0B@%8'L%@RZ.Ic UGs{~!pfL2,.-YM &5R6yY@]v7cu\.<ՠRf jv55DR3dZ/f /3T2- ]0A &hԷ굘nhU~CAXGa(a\ wWmU-g&jMR<)uu3x 2RjbtҔcV]y_Q`]7HxlUd+fKYu<|$KM9ɍSkKqekZqe8ͪAai\QW)V̒a뺴e F4fw>jqb@'*܈*ͥhpH-Mtx!ϦDsE)Q? "Ʌ^ZYPQc M/@#G0(MUd:Ժh >[Nљ*!:aONf1dz㗁?㞻Cfn(2"3xߟhk fRy}eymym|l,h;QixNjr&vM8\^b'Q ߊ8/1y< l/t1b't:Z*tY\vYɤ7gz}]PΞCcw|%TwOsͯ`P iSvnBi.}l]tSiF㆞~&:$uP>S[{Ǻެ<_;[nc,ݓ>8 S)^Rhƈ7?}OmU*г?sp{{xn N6 x z!Z>jK>iri_8a*k`5~1 %. [ {VrV`Q`tt)R5Nu*Ì_^[SmbÅJD_|Rg/\Pޣ:8~>śwKaTP e;s -/!&V*Ewjr#J}YWvRtBp{{';sQh6H_2d܌$CtQ?j~[WLfz=z?bNfKQ}CC<*ӷ gC8x +f5uMK䭣kmx|S;T@ɳ8Z#FSV|v RI.4_SJ`a {2N9GKA7lj-'2s=-6T(jbRh^`]*lTTނR^ux;m4 MŠkn" g8b̤ϴvyĸyOlqh&`\ گ|_~ׅL^B ̬7]/ҍ01K*miqj9-YFlm!c6R:wb6ױe 0e'|,='j;}x(E9{Fh XP<ڶ7GW`*(~\鹽5NRK{nv&w<uQ~o۞;ǬtŋQvKQ̸ط=ewa@AqFEc@|si{xڂFlׄu[4VV ?]/|\<&KNu Og,YQ+;d#ƪ?gxTc=5㷲2L:^n{T<]\\YY1f{’+z>q1fvScbm`t?'L3w{l~کb/)9>S9g{Wk7+';/ir] }]b[?:aQr:D4K3pə?6z=[ nCY-.1ӳ ˹aꭧ0L[gXζn~g-zNdt}zjFv"g&}h〾eyvV}cI7xow{Xb.d_ld5-={6$#pۣ9,o#ោ/EbDߋ|9"]-1<tQR̫h.F&ʟ;Xҕ4`N.rUv4O6` @@ )}ıxm;NowE5X3WP 8DQB}U<_ۣV| b!o(XB8[-7u "YF--sAInv1AT;H}1DH$ \k aq]emGa|+^~H m`if0BS*ڡ klG0q7"jӰ8|]Pf>1'X߾5y鶡W5. P:}554G0GK}ti) :J_8mSisĎ?k⧧tĞ;l#Fc4<3Ѱ?Gܮ?vZ~%&Jyc{ VǏ?;*QH0@rF8aOtARuT}3^ |8>J%gUG[qr(,#<&`z?"GwP>5Tęd-,m#qQ$K9!uV9*&$XqW)"0N趇Qް-.1NwRE@cwQ84HtڑPx~C²V:/>zɃ]idNҹ3,nTč ŋXq:`e)P%A0FlH:>.f>I=RcVU3wЂJ%QN @(WNDdÛH ,˪w g Eu8Tp7 E.sDBЇS6}Zin9>|HΠ;'(dP:_Hi*`<$ _U#W^8YXh{-wDh`J.y2  )ĠJ.؏V\@# eωQžPxB((D1rCت(q忠-1qN^hḄT;wMÿsBj,kKP+1}2w! Y @װk3Q~^h PFY,%&  `؇qwԷGř v"oY"NB'&ֵe30=Pűʤ{, 45l](d XRM I7 p5_+P,@p(d hRyAI+}Xh&*DDsѨy$[/!C@)X1!V") QL?ė,PΟn_Ҧ 2,7 g̠5 o ,d<`#60`M:MR%\A- !j^1OD%7+?MvB|@8JQE,M2/!'H̔/j~pK3p+ F#IwCBń[]/^[O^cѣB%iĄ&\{)9cJLb4dHvus#S+gt1R/=lP/7Y TSK +&k[=h^%C ?$9ppqQ޿A/xpf,Aa/D)`h!8MIp(Mُt RQo 9`NZ@Bv' IF^Cw$ #㼣uO,Hk<^#3 ےA$guR, ]4,Hl4Xn ib#B~>󴟉RvprWLY[,TKUvv|3🶁fqMDCo!'sBNf\CWo&c[KU`vIll-ne"}V'ڞ@oԞ~.+n ^l_ B@3(\bvk$S6.5 >+4r۷I]+LӚ*NZhL6PDUcFgϕۂaѐG"U{tA,!?tm͟kZP86 xl3b׿ٝ$[ 9+[n2Xs#  R>p1࿤#&%P@E`i]vX .lO*n1a9ĥ"'T D{ ảl N\WWKk)?ux&V,A&e cb0ok m퇠m:+lG`KQ_ }dnDh1jm,v;Ǎ&})-IF ?6n ntj%FeG K;ypOj g5@C : h}{?Yp  bq`2PAzi 3LH[O\?Xae*'Ti/S݉9읲5TNC@&*@כgB,TиIo(GUrrvcSk.M W :p_Pe`:dKn"x~2QoGCv&Tp=Gais4>fmtnbӏ`?n'(q8R#dXʜfQ\zI _ՠTw'wJc7i_xqAl}؎xjK5ƣ]\5A@c5sv%`N%gh i.=EE.Ad7nBi S^`uP,lTήG2yE(X hf;&06&%Ivv5 y 'bΒю$opNS.D$ƦşBE ƸfS"3ջ~PZkFw`O@}Npx9!f{Q`).u>T-]6^mZR]t>zl>]v#Ce^_a?:v0 \BmѱxPvix. nc\.?D.-/o7.ƅX,O l nTxjX AC,c shX+Ws* ü9͙JKP7Yg O+ay<|>y<|>y<|>y<|>y<|> ?g]Xwork/1776643672.97974000075500000000000152424177470007261 0ustar00