On Sun May 27 20:11:51 2012, coke wrote:
> 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.
> 

Test was added to S02-magicals/78258.t by Steve Mynott in 08/2013, but was 
never activated. as of 536cb03, rakudo is now running (and at least on parrot, 
passing) this test.

-- 
Will "Coke" Coleda

Reply via email to