Created
October 6, 2010 21:53
-
-
Save mberends/614159 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment