On Wed Oct 06 16:01:03 2010, masak wrote: > mberends++ reports the following bug: > > $ cat testenv.pm6 > > print 'Test existence of %*ENV<PERL6LIB>: '; > print %*ENV.exists('PERL6LIB'); > say " OK, still alive"; > > $ rakudo testenv.pm6 > > Test existence of %*ENV<PERL6LIB>: Bool::True OK, still alive > > $ rakudo -e 'use testenv' > > Test existence of %*ENV<PERL6LIB>: Method 'exists' not found for > invocant of class 'Failure' > in main program body at line 2:testlib.pm6 > > ... > > In other words, %*ENV doesn't exist early enough for it to work within > a use'd module.
This works now: $ PERL6LIB=masak ./perl6 testenv.pm6 Test existence of %*ENV<PERL6LIB>: True OK, still alive $ PERL6LIB=masak ./perl6 -I. -e "use testenv" Test existence of %*ENV<PERL6LIB>: True OK, still alive Closable with tests. -- Will "Coke" Coleda