Environment variables: Difference between revisions

Line 578:
 
=={{header|langur}}==
<syntaxhighlight lang="langur">writeln "HOME: ", _env["HOME"]
writeln "PATHHOME: ", _env["PATH"]'HOME
writeln "USER: ", _env["USER"]</syntaxhighlight>
 
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, nor an index alternate.
<syntaxhighlight lang="langur">writeln "HOME: ", _env'HOME
writeln "PATH: ", _env'PATH
writeln "USER: ", _env'USER</syntaxhighlight>
</syntaxhighlight>
 
=={{header|Lasso}}==
1,007

edits