Commits

Toby Inkster committed e0e2391

lvalue sub fix

  • Participants
  • Parent commits 817fd98
  • Tags 0.003

Comments (0)

Files changed (3)

lib/Sub/Talisman.pm

 
 BEGIN {
 	$Sub::Talisman::AUTHORITY = 'cpan:TOBYINK';
-	$Sub::Talisman::VERSION   = '0.002';
+	$Sub::Talisman::VERSION   = '0.003';
 }
 
 use Attribute::Handlers;

meta/changes.pret

 	changeset [
 		item "Drop elliptical statements (yada-yada op) from test cases, as this will fail in Perl < 5.12."^^Bugfix;
 	].
+
+`Sub-Talisman 0.003 cpan:TOBYINK`
+	issued  2012-10-20;
+	changeset [
+		item "Fix lvalue sub in test cases in Perl < 5.16."^^Bugfix;
+	].
 use Test::More;
 use attributes ();
 
+my $x;
 {
 	package Local::XXX;
 	use Sub::Talisman qw( WWW XXX YYY ZZZ );
 
-	sub foo :XXX(1,2,3) { 1 };
-	sub bar :XXX(1) :YYY :ZZZ { 1 };
-	sub baz : XXX YYY ZZZ lvalue { 1 };
+	sub foo :XXX(1,2,3) { $x };
+	sub bar :XXX(1) :YYY :ZZZ { $x };
+	sub baz : XXX YYY ZZZ lvalue { $x };
 }
 
 my $pkg = 'Local::XXX';