Environment variables: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Minor tidy) |
Langurmonkey (talk | contribs) |
||
Line 582: | Line 582: | ||
writeln "USER: ", _env["USER"]</syntaxhighlight> |
writeln "USER: ", _env["USER"]</syntaxhighlight> |
||
{{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, nor an index alternate. |
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 |
<syntaxhighlight lang="langur">writeln "HOME: ", _env'HOME |