The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
Build.PL 25
Changes 06
MANIFEST 11
META.json 44
META.yml 44
README 22
lib/experimental.pm 311
t/00-compile.t 45
t/basic.t 09
9 files changed (This is a version diff) 2047
@@ -1,4 +1,7 @@
-# This Build.PL for experimental was generated by Dist::Zilla::Plugin::ModuleBuildTiny 0.006.
+# This Build.PL for experimental was generated by Dist::Zilla::Plugin::ModuleBuildTiny 0.007.
+use strict;
+use warnings;
+
 use 5.010;
-use Module::Build::Tiny 0.038;
+use Module::Build::Tiny 0.039;
 Build_PL();
@@ -1,5 +1,11 @@
 Revision history for experimental
 
+0.013     2014-10-25 21:54:47+02:00 Europe/Amsterdam
+          Rename lvalue_refs to refaliasing
+
+0.012     2014-10-12 12:10:06+02:00 Europe/Amsterdam
+          Added lvalue references feature
+
 0.011     2014-09-27 14:08:47+02:00 Europe/Amsterdam
           Clarified which order to apply pragmas [Grant McLean]
 
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.020.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.021.
 Build.PL
 Changes
 INSTALL
@@ -4,7 +4,7 @@
       "Leon Timmermans <leont@cpan.org>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.142060",
+   "generated_by" : "Dist::Zilla version 5.021, CPAN::Meta::Converter version 2.142690",
    "license" : [
       "perl_5"
    ],
@@ -16,7 +16,7 @@
    "prereqs" : {
       "configure" : {
          "requires" : {
-            "Module::Build::Tiny" : "0.038"
+            "Module::Build::Tiny" : "0.039"
          }
       },
       "develop" : {
@@ -49,7 +49,7 @@
    "provides" : {
       "experimental" : {
          "file" : "lib/experimental.pm",
-         "version" : "0.011"
+         "version" : "0.013"
       }
    },
    "release_status" : "stable",
@@ -64,6 +64,6 @@
          "web" : "https://github.com/Leont/experimental"
       }
    },
-   "version" : "0.011"
+   "version" : "0.013"
 }
 
@@ -9,9 +9,9 @@ build_requires:
   Test::More: '0.89'
   perl: '5.010'
 configure_requires:
-  Module::Build::Tiny: '0.038'
+  Module::Build::Tiny: '0.039'
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.020, CPAN::Meta::Converter version 2.142060'
+generated_by: 'Dist::Zilla version 5.021, CPAN::Meta::Converter version 2.142690'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -20,7 +20,7 @@ name: experimental
 provides:
   experimental:
     file: lib/experimental.pm
-    version: '0.011'
+    version: '0.013'
 requires:
   Carp: '0'
   feature: '0'
@@ -31,4 +31,4 @@ requires:
 resources:
   bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=experimental
   repository: git://github.com/Leont/experimental.git
-version: '0.011'
+version: '0.013'
@@ -1,7 +1,7 @@
 
 
 This archive contains the distribution experimental,
-version 0.011:
+version 0.013:
 
   Experimental features made easy
 
@@ -11,5 +11,5 @@ This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
 
 
-This README file was generated by Dist::Zilla::Plugin::Readme v5.020.
+This README file was generated by Dist::Zilla::Plugin::Readme v5.021.
 
@@ -1,5 +1,5 @@
 package experimental;
-$experimental::VERSION = '0.011';
+$experimental::VERSION = '0.013';
 use strict;
 use warnings;
 use version ();
@@ -27,6 +27,7 @@ my %min_version = (
 	lexical_subs    => '5.18.0',
 	postderef       => '5.20.0',
 	postderef_qq    => '5.20.0',
+	refaliasing     => '5.21.5',
 	regex_sets      => '5.18.0',
 	say             => '5.10.0',
 	smartmatch      => '5.10.0',
@@ -58,7 +59,13 @@ sub _enable {
 		croak "Can't enable unknown feature $pragma";
 	}
 	elsif ($min_version{$pragma} > $]) {
-		croak "Need perl $min_version{$pragma} or later for feature $pragma";
+		my $stable = $min_version{$pragma};
+		if ($stable->{version}[1] % 2) {
+			$stable = version->new(
+				"5.".($stable->{version}[1]+1).'.0'
+			);
+		}
+		croak "Need perl $stable or later for feature $pragma";
 	}
 }
 
@@ -112,7 +119,7 @@ experimental - Experimental features made easy
 
 =head1 VERSION
 
-version 0.011
+version 0.013
 
 =head1 SYNOPSIS
 
@@ -148,6 +155,7 @@ The supported features, documented further below, are:
 	lexical_topic - allow the use of lexical $_ via "my $_"
 	postderef     - allow the use of postfix dereferencing expressions, including
 	                in interpolating strings
+	refaliasing   - allow aliasing via \$x = \$y
 	regex_sets    - allow extended bracketed character classes in regexps
 	signatures    - allow subroutine signatures (for named arguments)
 	smartmatch    - allow the use of ~~
@@ -2,11 +2,11 @@ use 5.006;
 use strict;
 use warnings;
 
-# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.040
-
-use Test::More  tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.051
 
+use Test::More;
 
+plan tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
 
 my @module_files = (
     'experimental.pm'
@@ -45,6 +45,7 @@ for my $lib (@module_files)
 
 
 
-is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING};
+is(scalar(@warnings), 0, 'no warnings found')
+    or diag 'got warnings: ', ( Test::More->can('explain') ? Test::More::explain(\@warnings) : join("\n", '', @warnings) ) if $ENV{AUTHOR_TESTING};
 
 
@@ -50,5 +50,14 @@ if ($] >= 5.018) {
 END
 }
 
+if ($] >= 5.021005) {
+	is (eval <<'END', 1, 'ref aliasing compiles') or diag $@;
+	use experimental 'refaliasing';
+	\@a = \@b;
+	is(\@a, \@b, '@a and @b are the same after \@a=\@b');
+	1;
+END
+}
+
 done_testing;