# New Ticket Created by Zoffix Znet # Please include the string: [perl #129266] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=129266 >
NOTE: This is fixed in HEAD, but is broken in 2016.08.1-143-gc9b18c6. I'm opening the ticket as a reference point for tests I'm about to submit. # This module originally had 'bar' for the constant, then was precompiled, then 'bar' was changed to 'foo': zoffix@:/var/www/tmp/na$ cat Foo.pm constant $bar is export = "foo"; # Another module that uses the constant from the first zoffix@:/var/www/tmp/na$ cat Bar.pm6 use Foo; sub foo is export { "constant is $bar" } # Script still reports the old 'bar' value: zoffix@:/var/www/tmp/na$ perl6 -I. -MBar -e 'say foo' constant is bar