This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
‘Subroutine "&x" is not available’ during compilation
authorFather Chrysostomos <sprout@cpan.org>
Thu, 6 Sep 2012 23:03:20 +0000 (16:03 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 16 Sep 2012 05:45:07 +0000 (22:45 -0700)
sub {
  my $x;
  sub { eval '$x' }
}->()()
__END__
Variable "$x" is not available at (eval 1) line 2.

That one’s OK (though I wonder about the line number).

sub {
  my sub x {};
  sub { eval '\&x' }
}->()()
__END__
Variable "&x" is not available at (eval 1) line 1.

That should say ‘Subroutine’.


No differences found