Environment variables: Difference between revisions

(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
Line 513:
writeln "PATH: ", _env["PATH"]
writeln "USER: ", _env["USER"]</lang>
 
{{works with|langur|0.9}}
We could also the short-hand form of indexing by string. This is limited to code points used for tokens and does not allow for spaces.
<lang langur>writeln "HOME: ", _env'HOME
writeln "PATH: ", _env'PATH
writeln "USER: ", _env'USER</lang>
 
=={{header|Lasso}}==
890

edits