Raku Documentation
docs.raku.org › language › variables
Variables | Raku Documentation
On Windows, uses %*ENV<HOMEDRIVE> ~ %*ENV<HOMEPATH>. If the home directory cannot be determined, it will be Any. Contains the appropriate IO::Spec sub-class for the platform that the program is running on.
The Mail Archive
mail-archive.com › perl6-all@perl.org › msg114335.html
Re: I need help with my run keeper
For example, :$env would expect a named argument env when calling a subroutine. If you are referring to environment variables in Raku, the correct way to access them is through the %*ENV hash, which contains the environment variables of the underlying operating system.
Raku
raku.land › zef:lizmat › Env
Raku Land - Env
Raku maintains environment variables in a special hash named %*ENV. For when this access method is inconvenient, the Raku module Env allows environment variables to be treated as scalar or array variables.
Raku Documentation
docs.raku.org › language › system
System interaction | Raku Documentation
%*ENV will contain the environment variables, so that if you use: ... This will fail if the environment variable API_KEY has not been defined previously. Raku has a better way to deal with command line arguments if they represent file names: the $*ARGFILES dynamic variable.
Rakubrew
rakubrew.org
rakubrew - Raku installer and version manager
Only works in `shim` mode. To unset a local version one must delete the `.RAKU_VERSION` file in the respective folder. Modes ===== rakubrew can work in two distinct modes: `env` and `shim` In `env` mode rakubrew modifies the `$PATH` variable as needed when switching between versions.
Raku Guide
raku.guide
Raku Guide
In $morning 's environment $period is Morning. In $evening 's environment $period is Evening. In the previous chapter, we learned how Raku facilitates Functional Programming.
Raku-musings
raku-musings.com › rash1.html
Rash - A Raku Shell - Part 1: The Path
The system environment variables are available in Raku in the dynamic variable %*ENV. Let us start by writing a copy of the «printenv» program. It lists all the environment variables if run without an argument, and the specified one if given an argument. The output is close to the one given ...
The Mail Archive
mail-archive.com › perl6-all@perl.org › msg114333.html
I need help with my run keeper
I am missing what run does with (not finding them in https://docs.raku.org/routine/run) :$cwd :$env :$arg0 and :$win-verbatim-args This is what I have so far: method new(Proc:U: :$in = '-', :$out = '-', :$err = '-', Bool :$bin = False, Bool :$chomp = True, Bool :$merge = False, Str:D :$enc = 'UTF-8', Str:D :$nl = "\n", --> Proc:D) sub run( *@args ($, *@), :$in = '-', # use `:$in`, `$:out`, and `:$err` arguments to redirect to # different file handle, thus creating a kind of pipe
GitHub
github.com › Raku › problem-solving › issues › 159
The development experience around the generate-and-export pattern has shortcomings · Issue #159 · Raku/problem-solving
You might question, why would a Raku programmer use a named pipe for compile time inputs? Silly. Famously, programmers in the wild will always try stuff the developers never think about but nonetheless Raku's name is on the failures they see.
Published Feb 07, 2020
Author jnthn
The Mail Archive
mail-archive.com › perl6-all@perl.org › msg114408.html
Re: boo-boo in run docs?
I hope this helps you understand why there isn't a 'boo boo' in the documentation, and why what others have said is actually answering the question you asked. Regards, Richard (finanalyst) On 03/11/2025 08:03, ToddAndMargo via perl6-users wrote: Hi All, I do believe I came across a boo-boo in the docs for "run": https://docs.raku.org/routine/run sub run( *@args ($, *@), :$in = '-', :$out = '-', :$err = '-', Bool :$bin = False, Bool :$chomp = True, Bool :$merge = False, Str:D :$enc = 'UTF-8', Str:D :$nl = "\n", :$cwd = $*CWD, Hash() :$env = %*ENV, :$arg0, :$win-verbatim-args = False --> Proc:D) The above stated that it return a variable of type "Proc".
Raku Documentation
docs.raku.org › language › modules
Modules | Raku Documentation
Indeed it is becoming common practice by Raku community developers to place the extensive testing of a distribution in xt/ and to put minimal sanity tests in t/. Extensive testing is essential for development and quality control, but it can slow down the installation of popular distributions. An alternative to placing the meta-ok test in an extended test directory, but to ensure that it is only run when a developer or maintainer wants to, is to make the test dependent on an environment variable, e.g., in t/99-author-test.rakutest there is the following code
Raku
modules.raku.org › dist › Trait::Env:cpan:SCIMON
Trait::Env:auth - Raku Modules Directory
If there is a single matching environment variable and no :sep key is set then the system will fall back to splitting on the $*DISTRO.path-sep value as a seperator. Hashes can be single value with a :sep key to specify the seperator between pairs and a :kvsep to specifiy the seperator in each ...
GitHub
github.com › Raku › old-issue-tracker › issues › 203
Working with %*ENV in Rakudo is difficult · Issue #203 · Raku/old-issue-tracker
Rakudo's %*ENV is simply an instance of Parrot's Env PMC. Whenever we fetch something from the Env PMC, we get back a String PMC.
Published Jul 30, 2008
Author p6rt
GitHub
github.com › skaji › rakuenv
GitHub - skaji/rakuenv: Raku Environment Manager
rakuenv is a fork of https://github.com/rbenv/rbenv; you can redistribute rakuenv and/or modify it under the same terms as rbenv itself.
Starred by 13 users
Forked by 2 users
Languages Shell
Raku Documentation
docs.raku.org › programs › 03-environment-variables
Environment variables used by the raku command line | Raku Documentation
The RAKUDO_OPT environment variable provides a way to specify default compiler command line options, overridable by explicitly specifications on the command line. For example: ... RAKUDO_OPT="-I. --ll-exception" raku -Ilib test.raku · would ignore the -I. but would honor the --ll-exception ...
Raku
raku.github.io › Documentable › integration-test › programs › 03-environment-variables
Shell environment variables used by Raku
IO::Spec::Cygwin and IO::Spec::Win32 use more Windows-appropriate lists which also include the %TEMP% and %TMP% environment variables. ... The IO::Spec::Unix.path method splits $PATH as a shell would; i.e. as a colon-separated list. IO::Spec::Cygwin inherits this from IO::Spec::Unix. IO::Spec::Win32.path will read the first defined of either %PATH% or %Path% as a semicolon-delimited list. ... Indicates the period in which the telemetry snapper will take a snapshot. Defaults to .1 for 10 snapshots per second. Initial version written by the Rakudo contributors, see the CREDITS file.
Gentoo Wiki
wiki.gentoo.org › wiki › Raku
Raku - Gentoo wiki
The following environment variables are respected: RAKULIB Modify the module search path PERL6LIB Modify the module search path (DEPRECATED) RAKUDO_HOME Override the path of the Rakudo runtime files NQP_HOME Override the path of the NQP runtime files · There isn't an official Gentoo ebuild ...
Raku Advent Calendar
raku-advent.blog › 2019 › 12 › 01 › day-1-raku-from-perl
Day 1 – Raku from Perl: Transforming Old Perl Code
December 8, 2019 - And one can access the Perl module’s ... use5.raku) #!/usr/bin/env perl6 #| IMPORTANT #| Notice no explicit use of Inline::Perl5, but it #| must be installed. use lib:from '.'; #= Must define the Perl lib location with this syntax. use P5:from; #= Using the Perl module. #| IMPORTANT #| ========= #| Bind the hash variable so we can modify the hash. #| For access only, use of the '=' alone is ...