From: Rafael Garcia-Suarez Date: Sun, 30 Aug 2009 12:54:28 +0000 (+0200) Subject: Add missing files from the Switch CPAN distribution X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b7b3275c3bb974fac3d6b5672ce1e25876312063;p=p5sagit%2Fp5-mst-13.2.git Add missing files from the Switch CPAN distribution --- diff --git a/MANIFEST b/MANIFEST index dc14925..936307c 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1259,6 +1259,11 @@ ext/Storable/t/tied.t See if Storable works ext/Storable/t/utf8hash.t See if Storable works ext/Storable/t/utf8.t See if Storable works ext/Storable/t/weak.t Can Storable store weakrefs +ext/Switch/Changes Changes for Switch.pm +ext/Switch/MANIFEST MANIFEST for Switch.pm +ext/Switch/META.yml META.yml for Switch.pm +ext/Switch/Makefile.PL Makefile.PL for Switch.pm +ext/Switch/README README for Switch.pm ext/Switch/Switch.pm Switch for Perl ext/Switch/t/given.t See if Perl 6 given (switch) works ext/Switch/t/nested.t See if nested switch works diff --git a/ext/Switch/Changes b/ext/Switch/Changes new file mode 100644 index 0000000..e575183 --- /dev/null +++ b/ext/Switch/Changes @@ -0,0 +1,113 @@ +Revision 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) diff --git a/ext/Switch/MANIFEST b/ext/Switch/MANIFEST new file mode 100644 index 0000000..4c503299 --- /dev/null +++ b/ext/Switch/MANIFEST @@ -0,0 +1,9 @@ +Changes +MANIFEST +Makefile.PL +README +Switch.pm +t/given.t +t/nested.t +t/switch.t +META.yml Module meta-data (added by MakeMaker) diff --git a/ext/Switch/META.yml b/ext/Switch/META.yml new file mode 100644 index 0000000..107ea65 --- /dev/null +++ b/ext/Switch/META.yml @@ -0,0 +1,14 @@ +--- #YAML:1.0 +name: Switch +version: 2.14 +abstract: ~ +license: ~ +author: ~ +generated_by: ExtUtils::MakeMaker version 6.42 +distribution_type: module +requires: + Filter::Util::Call: 0 + Text::Balanced: 0 +meta-spec: + url: http://module-build.sourceforge.net/META-spec-v1.3.html + version: 1.3 diff --git a/ext/Switch/Makefile.PL b/ext/Switch/Makefile.PL new file mode 100644 index 0000000..b977be2 --- /dev/null +++ b/ext/Switch/Makefile.PL @@ -0,0 +1,7 @@ +use ExtUtils::MakeMaker; +WriteMakefile( + NAME => q[Switch], + VERSION_FROM => q[Switch.pm], + PREREQ_PM => { 'Filter::Util::Call' => 0, 'Text::Balanced' => 0 }, + INSTALLDIRS => $] >= 5.00703 ? 'perl' : 'site', +); diff --git a/ext/Switch/README b/ext/Switch/README new file mode 100644 index 0000000..4b829b0 --- /dev/null +++ b/ext/Switch/README @@ -0,0 +1,26 @@ +============================================================================== + Release of version 2.14 of Switch +============================================================================== + + +NAME + Switch - A switch statement for Perl + +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 Rafael Garcia-Suarez (rgarciasuarez@gmail.com) + and the Perl 5 porters (perl5-porters@gmail.com) + +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.