Environment variables: Difference between revisions
Rename Perl 6 -> Raku, alphabetize, minor clean-up
(Add Swift) |
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
||
Line 604:
path = sx.shell_cmd("echo $PATH").line[1]
end if</lang>
=={{header|Logtalk}}==▼
Using the standard library:▼
<lang logtalk>os::environment_variable('PATH', Path).</lang>▼
=={{header|LSL}}==
Line 620 ⟶ 624:
llGetFreeMemory()=16000
llGetMemoryLimit()=65536</pre>
▲=={{header|Logtalk}}==
▲Using the standard library:
▲<lang logtalk>os::environment_variable('PATH', Path).</lang>
=={{header|Lua}}==
Line 886:
<lang perl>use POSIX 'getenv';
print getenv("HOME"),"\n";</lang>
=={{header|Perl 6}}==▼
{{works with|Rakudo|#24 "Seoul"}}▼
The <code>%*ENV</code> hash maps environment variables to their values:▼
<lang perl6>say %*ENV<HOME>;</lang>▼
=={{header|Phix}}==
Line 950 ⟶ 945:
(getenv "HOME")
</lang>
(formerly Perl 6)
▲{{works with|Rakudo|#24 "Seoul"}}
▲The <code>%*ENV</code> hash maps environment variables to their values:
▲<lang perl6>say %*ENV<HOME>;</lang>
=={{header|REBOL}}==
|